        :root {
            --ink: #151515;
            --muted: #707a84;
            --paper: #f7f3ec;
            --paper-strong: #fffaf1;
            --line: rgba(21, 21, 21, 0.12);
            --accent: #2f6f4e;
            --accent-dark: #173a2b;
            --warm: #dca74f;
            --shadow: 0 24px 80px rgba(24, 35, 28, 0.14);
            --nav: rgba(10, 14, 12, 0.54);
            --radius-lg: 30px;
            --radius-md: 22px;
            --category-icon: "⌨️";
            --hero-image: url("./assets/backgrounds/night.jpg");
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            min-height: 100vh;
            background:
                radial-gradient(circle at 18% 14%, rgba(220, 167, 79, 0.20), transparent 28rem),
                radial-gradient(circle at 82% 6%, rgba(47, 111, 78, 0.18), transparent 26rem),
                linear-gradient(180deg, #f8f4ec 0%, #efe8dc 48%, #f9f6ef 100%);
            color: var(--ink);
            font-family: "Open Sans", "Noto Serif SC", sans-serif;
            overflow-x: hidden;
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            opacity: 0.34;
            background-image:
                linear-gradient(rgba(20, 20, 20, 0.045) 1px, transparent 1px),
                linear-gradient(90deg, rgba(20, 20, 20, 0.035) 1px, transparent 1px);
            background-size: 42px 42px;
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
        }

        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 90;
            width: 0%;
            height: 3px;
            background: linear-gradient(90deg, #f0c97a, #2f6f4e);
            box-shadow: 0 0 18px rgba(240, 201, 122, 0.45);
            transition: width 0.12s linear;
        }

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

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

        .site-header {
            position: fixed;
            inset: 0 0 auto;
            z-index: 50;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            height: 64px;
            padding: 0 clamp(20px, 4vw, 54px);
            color: #18241f;
            background: rgba(250, 248, 242, 0.91);
            border-bottom: 1px solid rgba(24, 36, 31, 0.09);
            box-shadow: 0 10px 32px rgba(24, 36, 31, 0.07);
            backdrop-filter: blur(18px) saturate(140%);
            -webkit-backdrop-filter: blur(18px) saturate(140%);
        }

        .site-header.compact {
            background: rgba(250, 248, 242, 0.97);
        }

        .brand-cursive {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            flex: 0 0 auto;
            margin-right: auto;
            padding: 8px 10px;
            border-radius: 14px;
            font-family: "Noto Serif SC", serif;
            font-size: 17px;
            font-weight: 700;
            letter-spacing: -0.03em;
        }

        .brand-cursive::before {
            content: var(--category-icon);
            display: grid;
            place-items: center;
            width: 31px;
            height: 31px;
            border: 1px solid rgba(47, 111, 78, 0.12);
            border-radius: 11px;
            background: rgba(255, 255, 255, 0.72);
            box-shadow: 0 7px 20px rgba(24, 36, 31, 0.07);
            font-size: 16px;
        }

        .brand-cursive:hover {
            background: rgba(47, 111, 78, 0.07);
        }

        .desktop-nav {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
            font-family: "Noto Serif SC", serif;
            font-size: 13px;
            font-weight: 600;
        }

        .nav-item {
            display: inline-flex;
            align-items: center;
            min-height: 40px;
            padding: 0 13px;
            border-radius: 13px;
            color: #47544e;
            transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
        }

        .nav-item:hover,
        .nav-item.active {
            color: #173a2b;
            background: rgba(47, 111, 78, 0.08);
            transform: translateY(-1px);
        }

        .nav-dropdown,
        .header-search {
            position: relative;
        }

        .dropdown-toggle,
        .search-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            min-height: 40px;
            padding: 0 13px;
            border: 0;
            border-radius: 13px;
            color: #47544e;
            background: transparent;
            font: 600 13px/1 "Noto Serif SC", serif;
            cursor: pointer;
        }

        .search-toggle {
            width: 44px;
            min-width: 44px;
            height: 44px;
            padding: 0;
            font-size: 19px;
        }

        .dropdown-toggle:hover,
        .search-toggle:hover,
        .nav-dropdown.open .dropdown-toggle,
        .header-search.open .search-toggle {
            color: #173a2b;
            background: rgba(47, 111, 78, 0.08);
        }

        .dropdown-chevron {
            width: 6px;
            height: 6px;
            margin-top: -3px;
            border-right: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
            transform: rotate(45deg);
        }

        .dropdown-menu,
        .search-panel {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            visibility: hidden;
            margin: 0;
            border: 1px solid rgba(24, 36, 31, 0.1);
            border-radius: 18px;
            background: rgba(255, 253, 248, 0.98);
            box-shadow: 0 20px 55px rgba(24, 36, 31, 0.16);
            opacity: 0;
            transform: translateY(-7px);
            transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
            backdrop-filter: blur(18px);
        }

        .dropdown-menu {
            display: grid;
            grid-template-columns: repeat(2, minmax(142px, 1fr));
            gap: 5px;
            width: 316px;
            padding: 10px;
        }

        .dropdown-menu a {
            display: flex;
            align-items: center;
            gap: 9px;
            min-height: 42px;
            padding: 9px 11px;
            border-radius: 12px;
            color: #526059;
            font: 600 12px/1.35 "Noto Serif SC", serif;
        }

        .dropdown-menu a:hover,
        .dropdown-menu a.active {
            color: #173a2b;
            background: rgba(47, 111, 78, 0.08);
        }

        .nav-dropdown.open .dropdown-menu,
        .header-search.open .search-panel {
            visibility: visible;
            opacity: 1;
            transform: translateY(0);
        }

        .search-panel {
            display: flex;
            gap: 8px;
            width: min(340px, calc(100vw - 32px));
            padding: 10px;
        }

        .search-panel input {
            min-width: 0;
            flex: 1;
            height: 40px;
            padding: 0 13px;
            border: 1px solid rgba(24, 36, 31, 0.13);
            border-radius: 12px;
            outline: 0;
            color: #18241f;
            background: #fff;
            font: 13px/1.2 "Noto Serif SC", serif;
        }

        .search-panel input:focus {
            border-color: rgba(47, 111, 78, 0.48);
            box-shadow: 0 0 0 3px rgba(47, 111, 78, 0.08);
        }

        .search-panel button {
            min-width: 58px;
            border: 0;
            border-radius: 12px;
            color: #fff;
            background: var(--accent);
            font: 600 12px/1 "Noto Serif SC", serif;
            cursor: pointer;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 12px;
            font-family: "JetBrains Mono", monospace;
            font-size: 12px;
        }

        .ghost-button,
        .mobile-menu-button {
            border: 1px solid rgba(24, 36, 31, 0.11);
            border-radius: 13px;
            color: #173a2b;
            background: rgba(255, 255, 255, 0.56);
        }

        .ghost-button {
            padding: 10px 15px;
        }

        .ghost-button:hover,
        .mobile-menu-button:hover {
            background: rgba(47, 111, 78, 0.09);
        }

        .mobile-menu-button {
            display: none;
            width: 44px;
            height: 44px;
            cursor: pointer;
        }

        .mobile-menu {
            display: none;
            position: fixed;
            z-index: 45;
            top: 64px;
            left: 16px;
            right: 16px;
            overflow-y: auto;
            max-height: calc(100dvh - 80px);
            padding: 12px;
            border: 1px solid rgba(24, 36, 31, 0.1);
            border-radius: 0 0 22px 22px;
            background: rgba(255, 253, 248, 0.98);
            color: #405148;
            box-shadow: var(--shadow);
            backdrop-filter: blur(18px);
        }

        .mobile-menu.open {
            display: grid;
            gap: 6px;
        }

        .mobile-menu a {
            display: flex;
            min-height: 44px;
            align-items: center;
            padding: 12px 14px;
            border-radius: 16px;
            font-family: "Montserrat", sans-serif;
            font-size: 13px;
            letter-spacing: 0.05em;
        }

        .mobile-menu a:hover {
            color: #173a2b;
            background: rgba(47, 111, 78, 0.10);
        }

        .hero {
            position: relative;
            min-height: 66vh;
            display: grid;
            align-items: center;
            padding: 150px clamp(22px, 6vw, 78px) 90px;
            overflow: hidden;
            color: #fff;
            background:
                linear-gradient(105deg, rgba(6, 12, 9, 0.78) 0%, rgba(6, 12, 9, 0.54) 48%, rgba(6, 12, 9, 0.20) 100%),
                var(--hero-image) center / cover no-repeat;
        }

        .hero::after {
            content: "";
            position: absolute;
            inset: auto 0 0;
            height: 180px;
            background: linear-gradient(180deg, transparent, rgba(248, 244, 236, 0.98));
        }

        .hero-content {
            position: relative;
            z-index: 2;
            width: min(1120px, 100%);
            margin: 0 auto;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 330px;
            gap: clamp(34px, 6vw, 88px);
            align-items: end;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            width: fit-content;
            padding: 8px 13px;
            border: 1px solid rgba(255, 255, 255, 0.28);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.10);
            font-family: "JetBrains Mono", monospace;
            font-size: 12px;
            letter-spacing: 0.16em;
            text-transform: uppercase;
        }

        .hero h1 {
            margin: 28px 0 18px;
            font-family: "Noto Serif SC", serif;
            font-size: clamp(44px, 8vw, 92px);
            line-height: 1.04;
            letter-spacing: -0.03em;
        }

        .hero h1 span {
            display: block;
            color: #f0c97a;
        }

        .hero-desc {
            max-width: 680px;
            margin: 0;
            color: rgba(255, 255, 255, 0.78);
            font-size: clamp(16px, 2vw, 20px);
            line-height: 1.9;
        }

        .hero-card {
            padding: 26px;
            border: 1px solid rgba(255, 255, 255, 0.20);
            border-radius: var(--radius-lg);
            background: rgba(255, 255, 255, 0.11);
            box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
            backdrop-filter: blur(18px);
        }

        .hero-card .number {
            display: block;
            margin-bottom: 10px;
            font-family: "Montserrat", sans-serif;
            font-size: 58px;
            font-weight: 800;
            line-height: 1;
        }

        .hero-card p {
            margin: 0;
            color: rgba(255, 255, 255, 0.78);
            line-height: 1.7;
        }

        .down-button {
            position: absolute;
            z-index: 3;
            left: 50%;
            bottom: 34px;
            display: grid;
            justify-items: center;
            gap: 0;
            width: 96px;
            border: 0;
            background: transparent;
            color: #fff;
            cursor: pointer;
            transform: translateX(-50%) scale(0.74);
        }

        .down-button span:first-child {
            margin-bottom: 12px;
            font-family: "JetBrains Mono", monospace;
            font-size: 10px;
            letter-spacing: 0.24em;
            opacity: 0.66;
        }

        .arrow {
            position: relative;
            width: 58px;
            height: 58px;
            border-top: 9px solid rgba(255, 255, 255, 0.9);
            border-left: 9px solid rgba(255, 255, 255, 0.9);
            transform: rotate(-135deg);
            animation: arrow-load 2s infinite;
        }

        .arrow:nth-child(2) {
            top: 25px;
            animation-delay: -0.4s;
        }

        .arrow:nth-child(3) {
            animation-delay: -0.2s;
        }

        .arrow:nth-child(4) {
            bottom: 25px;
        }

        @keyframes arrow-load {
            0% {
                opacity: 0;
                transform: rotate(-135deg) translate(50px, 50px);
            }
            50% {
                opacity: 1;
            }
            100% {
                opacity: 0;
            }
        }

        .page-shell {
            width: min(1180px, calc(100% - 44px));
            margin: -42px auto 0;
            position: relative;
            z-index: 4;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 310px;
            gap: 28px;
            padding-bottom: 80px;
            align-items: start;
        }

        .content-flow {
            display: grid;
            gap: 22px;
            min-width: 0;
        }

        #notes,
        #updates,
        #tags,
        #guide {
            scroll-margin-top: 110px;
        }

        .section-card {
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            background: rgba(255, 250, 241, 0.82);
            box-shadow: var(--shadow);
            backdrop-filter: blur(18px);
        }

        .content-panel {
            padding: clamp(20px, 4vw, 34px);
        }

        .section-heading {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 24px;
            margin-bottom: 24px;
        }

        .section-heading p {
            margin: 0 0 8px;
            color: var(--muted);
            font-family: "JetBrains Mono", monospace;
            font-size: 12px;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }

        .section-heading h2 {
            margin: 0;
            font-family: "Montserrat", "Noto Serif SC", sans-serif;
            font-size: clamp(28px, 4vw, 44px);
            line-height: 1.1;
        }

        .utility-link {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 11px 15px;
            border: 1px solid var(--line);
            border-radius: 999px;
            color: var(--accent-dark);
            background: rgba(255, 255, 255, 0.52);
            font-family: "JetBrains Mono", monospace;
            font-size: 12px;
            font-weight: 600;
        }

        .utility-link:hover {
            border-color: rgba(47, 111, 78, 0.32);
            background: #fff;
        }

        .post-list {
            display: grid;
            gap: 18px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .empty-state {
            display: grid;
            place-items: center;
            min-height: 280px;
            padding: 38px 24px;
            border: 1px dashed rgba(47, 111, 78, 0.28);
            border-radius: 26px;
            background: rgba(255, 255, 255, 0.58);
            text-align: center;
        }

        .empty-state span {
            font-size: 38px;
        }

        .empty-state h3 {
            margin: 12px 0 6px;
            font-family: "Noto Serif SC", serif;
            font-size: 24px;
        }

        .empty-state p,
        .timeline-empty {
            margin: 0;
            color: var(--muted);
            line-height: 1.8;
        }

        .empty-state a {
            margin-top: 18px;
            padding: 10px 15px;
            border-radius: 999px;
            color: #fff;
            background: var(--accent-dark);
            font-size: 13px;
        }

        .note-item {
            position: relative;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 235px;
            gap: 22px;
            min-height: 230px;
            padding: 20px;
            border: 1px solid rgba(21, 21, 21, 0.10);
            border-radius: 26px;
            background: rgba(255, 255, 255, 0.74);
            overflow: hidden;
            transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
        }

        .note-item::before {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 5px;
            background: linear-gradient(180deg, var(--accent), var(--warm));
            opacity: 0;
            transition: opacity 0.28s ease;
        }

        .note-item:hover {
            transform: translateY(-8px);
            border-color: rgba(47, 111, 78, 0.24);
            box-shadow: 0 22px 70px rgba(24, 35, 28, 0.16);
        }

        .note-item:hover::before {
            opacity: 1;
        }

        .note-main {
            display: flex;
            flex-direction: column;
            min-width: 0;
            padding: 4px 0 4px 4px;
        }

        .pin {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            width: fit-content;
            margin-bottom: 14px;
            padding: 6px 10px;
            border-radius: 999px;
            color: #fff;
            background: var(--accent-dark);
            font-family: "JetBrains Mono", monospace;
            font-size: 11px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .note-title {
            margin: 0;
            font-family: "Noto Serif SC", serif;
            font-size: clamp(24px, 3vw, 34px);
            line-height: 1.22;
        }

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

        .note-excerpt {
            margin: 14px 0 18px;
            color: #4e5b57;
            font-size: 15px;
            line-height: 1.82;
        }

        .note-footer {
            display: flex;
            flex-wrap: wrap;
            gap: 10px 14px;
            margin-top: auto;
            color: var(--muted);
            font-family: "JetBrains Mono", monospace;
            font-size: 12px;
        }

        .note-footer span {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .read-more {
            width: fit-content;
            margin-top: 16px;
            color: var(--accent-dark);
            font-family: "Montserrat", sans-serif;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .read-more:hover {
            color: var(--accent);
        }

        .note-cover {
            min-height: 190px;
            border-radius: 22px;
            overflow: hidden;
            background: #d9d4c9;
        }

        .note-cover img {
            width: 100%;
            height: 100%;
            min-height: 190px;
            object-fit: cover;
            transition: transform 0.45s ease, filter 0.45s ease;
        }

        .note-item:hover .note-cover img {
            transform: scale(1.06);
            filter: saturate(1.08) contrast(1.04);
        }

        .sidebar {
            display: grid;
            gap: 18px;
            align-content: start;
            position: sticky;
            top: 96px;
            max-height: calc(100vh - 116px);
            overflow: auto;
            scrollbar-width: thin;
        }

        .side-card {
            padding: 24px;
        }

        .side-card h3 {
            margin: 0 0 14px;
            font-family: "Montserrat", "Noto Serif SC", sans-serif;
            font-size: 18px;
        }

        .side-card p {
            margin: 0;
            color: var(--muted);
            line-height: 1.8;
            font-size: 14px;
        }

        .toc-card {
            padding: 20px;
        }

        .toc-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 16px;
        }

        .toc-header h3 {
            margin: 0;
        }

        .toc-progress {
            min-width: 42px;
            padding: 5px 9px;
            border-radius: 999px;
            color: var(--accent-dark);
            background: rgba(47, 111, 78, 0.10);
            font-family: "JetBrains Mono", monospace;
            font-size: 12px;
            text-align: center;
        }

        .toc-nav {
            display: grid;
            gap: 8px;
        }

        .toc-link {
            position: relative;
            display: grid;
            grid-template-columns: 34px minmax(0, 1fr);
            align-items: center;
            gap: 10px;
            min-height: 42px;
            padding: 8px 10px;
            border: 1px solid transparent;
            border-radius: 16px;
            color: #4d5955;
            font-size: 14px;
            transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
        }

        .toc-link span {
            color: var(--muted);
            font-family: "JetBrains Mono", monospace;
            font-size: 12px;
        }

        .toc-link:hover,
        .toc-link.active {
            color: var(--accent-dark);
            border-color: rgba(47, 111, 78, 0.16);
            background: rgba(255, 255, 255, 0.70);
            transform: translateX(4px);
        }

        .toc-link.active::before {
            content: "";
            position: absolute;
            left: -7px;
            top: 50%;
            width: 4px;
            height: 24px;
            border-radius: 999px;
            background: linear-gradient(180deg, var(--accent), var(--warm));
            transform: translateY(-50%);
        }

        .category-nav {
            display: grid;
            gap: 9px;
            margin-top: 14px;
        }

        .category-nav a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.52);
            color: #46534f;
            font-size: 14px;
            transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
        }

        .category-nav a:hover,
        .category-nav a.active {
            color: var(--accent-dark);
            background: rgba(47, 111, 78, 0.10);
            transform: translateX(4px);
        }

        .category-nav small {
            color: var(--muted);
            font-family: "JetBrains Mono", monospace;
            font-size: 11px;
        }

        .tag-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 14px;
        }

        .tag-cloud a,
        .tag-cloud span {
            padding: 8px 11px;
            border: 1px solid rgba(21, 21, 21, 0.10);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.58);
            color: #43514d;
            font-size: 13px;
        }

        .stat-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-top: 16px;
        }

        .stat {
            padding: 14px;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.58);
        }

        .stat strong {
            display: block;
            color: var(--accent-dark);
            font-family: "Montserrat", sans-serif;
            font-size: 24px;
            line-height: 1;
        }

        .stat span {
            display: block;
            margin-top: 8px;
            color: var(--muted);
            font-size: 12px;
        }

        .update-timeline {
            display: grid;
            gap: 16px;
            margin-top: 4px;
        }

        .update-item {
            position: relative;
            padding: 18px 18px 18px 24px;
            border: 1px solid rgba(21, 21, 21, 0.10);
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.62);
        }

        .update-item::before {
            content: "";
            position: absolute;
            left: 10px;
            top: 24px;
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background: var(--accent);
            box-shadow: 0 0 0 6px rgba(47, 111, 78, 0.12);
        }

        .update-item time {
            display: block;
            margin-bottom: 8px;
            color: var(--muted);
            font-family: "JetBrains Mono", monospace;
            font-size: 12px;
        }

        .update-item h3 {
            margin: 0 0 8px;
            font-family: "Noto Serif SC", serif;
            font-size: 22px;
        }

        .update-item p {
            margin: 0;
            color: #4e5b57;
            line-height: 1.8;
        }

        .rule-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
        }

        .rule-card {
            padding: 18px;
            border: 1px solid rgba(21, 21, 21, 0.10);
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.62);
        }

        .rule-card b {
            display: block;
            margin-bottom: 10px;
            color: var(--accent-dark);
            font-family: "Montserrat", "Noto Serif SC", sans-serif;
            font-size: 15px;
        }

        .rule-card p {
            margin: 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.75;
        }

        .reveal-section {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.58s ease, transform 0.58s ease;
        }

        .reveal-section.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .floating-tools {
            position: fixed;
            right: 22px;
            bottom: 84px;
            z-index: 70;
            display: grid;
            gap: 10px;
        }

        .float-button {
            width: 44px;
            height: 44px;
            border: 1px solid rgba(21, 21, 21, 0.12);
            border-radius: 15px;
            color: var(--accent-dark);
            background: rgba(255, 250, 241, 0.84);
            box-shadow: 0 14px 38px rgba(24, 35, 28, 0.14);
            cursor: pointer;
            backdrop-filter: blur(14px);
            transition: transform 0.22s ease, background 0.22s ease;
        }

        .float-button:hover {
            background: #fff;
            transform: translateY(-3px);
        }

        .timeline {
            display: grid;
            gap: 13px;
            margin-top: 14px;
        }

        .timeline a,
        .timeline span {
            display: grid;
            gap: 4px;
            padding-left: 14px;
            border-left: 2px solid rgba(47, 111, 78, 0.30);
        }

        .timeline b {
            font-size: 14px;
        }

        .timeline small {
            color: var(--muted);
            font-family: "JetBrains Mono", monospace;
        }

        .site-footer {
            padding: 28px 20px 42px;
            color: rgba(21, 21, 21, 0.52);
            text-align: center;
            font-size: 13px;
        }

        .toast {
            position: fixed;
            right: 22px;
            bottom: 22px;
            z-index: 80;
            max-width: min(320px, calc(100vw - 44px));
            padding: 12px 15px;
            border-radius: 16px;
            color: #fff;
            background: rgba(16, 24, 19, 0.88);
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
            opacity: 0;
            pointer-events: none;
            transform: translateY(14px);
            transition: opacity 0.22s ease, transform 0.22s ease;
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        @media (max-width: 980px) {
            .desktop-nav,
            .nav-actions .ghost-button {
                display: none;
            }

            .mobile-menu-button {
                display: inline-grid;
                place-items: center;
            }

            .hero-content,
            .page-shell {
                grid-template-columns: 1fr;
            }

            .hero-card {
                max-width: 520px;
            }

            .sidebar {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                position: static;
                max-height: none;
                overflow: visible;
            }
        }

        @media (max-width: 720px) {
            .hero-desc,
            .note-excerpt,
            .update-item p,
            .rule-card p,
            .side-card p {
                font-size: 16px;
            }
            .site-header {
                padding: 0 18px;
            }

            .hero {
                min-height: 76vh;
                padding: 160px 22px 86px;
            }

            .hero h1 {
                margin-top: 22px;
            }

            .page-shell {
                width: min(100% - 28px, 1180px);
                gap: 18px;
            }

            .section-heading {
                display: grid;
            }

            .utility-link {
                width: fit-content;
            }

            .note-item {
                grid-template-columns: 1fr;
                min-height: auto;
            }

            .note-cover {
                order: -1;
                min-height: 178px;
            }

            .sidebar {
                grid-template-columns: 1fr;
            }

            .rule-grid {
                grid-template-columns: 1fr;
            }

            .floating-tools {
                right: 14px;
                bottom: 72px;
            }
        }

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

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