* {
    box-sizing: border-box;
}

:root {
    --color-text-primary: #000000;
    --color-text-body: #3d3d3d;
    --color-text-tertiary: #8a8a8a;
    --highlight-yellow: rgba(255, 232, 130, 0.55);
    --highlight-yellow-soft: rgba(255, 245, 180, 0.35);
    --highlight-green: rgba(186, 230, 190, 0.55);
    --highlight-green-soft: rgba(210, 240, 212, 0.35);
    --highlight-orange: rgba(255, 210, 170, 0.5);
    --highlight-orange-soft: rgba(255, 228, 200, 0.32);
    --highlight-blue: rgba(186, 218, 245, 0.5);
    --highlight-blue-soft: rgba(210, 232, 250, 0.32);
}

html {
    background-color: white;
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

body {
    background-color: white;
    color: #666;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    padding: 2rem;
    animation: fadeIn 0.15s ease-out;
}

/* Typography hierarchy — contrast through color, not size */
.text-tertiary {
    color: var(--color-text-tertiary);
}

.highlight {
    position: relative;
    display: inline;
    color: inherit;
    isolation: isolate;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 0.08em;
    margin: 0 -0.04em;
}

.highlight::before,
.highlight::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.highlight::before {
    top: 0.32em;
    bottom: 0.06em;
    left: -0.1em;
    right: -0.06em;
    background: var(--highlight-yellow);
    border-radius: 55% 45% 50% 50% / 40% 55% 45% 60%;
    transform: rotate(-0.8deg) scale(1.02, 1.06);
}

.highlight::after {
    top: 0.38em;
    bottom: 0.1em;
    left: -0.04em;
    right: -0.12em;
    background: var(--highlight-yellow-soft);
    border-radius: 48% 52% 58% 42% / 52% 38% 62% 48%;
    transform: rotate(0.6deg) scale(0.97, 1.03);
}

.highlight--green::before {
    background: var(--highlight-green);
}

.highlight--green::after {
    background: var(--highlight-green-soft);
}

.highlight--orange::before {
    background: var(--highlight-orange);
}

.highlight--orange::after {
    background: var(--highlight-orange-soft);
}

.highlight--blue::before {
    background: var(--highlight-blue);
}

.highlight--blue::after {
    background: var(--highlight-blue-soft);
}

::selection {
    background-color: black;
    color: white;
}

::-moz-selection {
    background-color: black;
    color: white;
}

.main {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

section {
    margin-bottom: 1.5rem;
}

.name {
    font-weight: bold;
    font-size: 25px;
    color: var(--color-text-primary);
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

.name h1 {
    margin: 0;
}

.nav {
    display: flex;
    gap: 2.5rem;
    margin: 0 0 2rem 0;
    font-size: 15px;
}

.nav a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
    cursor: pointer;
}

.nav a:hover {
    opacity: 0.6;
    border-bottom: 1px solid black;
}

.nav a:focus {
    outline: 1px solid black;
    outline-offset: 0.2rem;
}

a {
    cursor: pointer;
}

a:focus-visible {
    outline: 1px solid black;
    outline-offset: 0.2rem;
}

.description {
    margin-bottom: 2rem;
}

.general {
    font-weight: normal;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.column section {
    margin-bottom: 0;
}

.updates {
    margin-bottom: 3rem;
}

.h24all {
    font-weight: bold;
    font-size: 15px;
    color: var(--color-text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.section-header .h24all {
    margin: 0;
}

.view-all {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
}

.view-all:hover {
    opacity: 0.6;
    border-bottom: 1px solid black;
}

.view-all:focus-visible {
    outline: 1px solid black;
    outline-offset: 0.2rem;
}

.header-block {
    margin-bottom: 2rem;
}

.back-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    margin-bottom: 1rem;
    transition: opacity 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
}

.back-link:hover {
    opacity: 0.6;
    border-bottom: 1px solid black;
}

.back-link:focus-visible {
    outline: 1px solid black;
    outline-offset: 0.2rem;
}

.page-title {
    font-weight: bold;
    font-size: 25px;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.4;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.post-row {
    display: flex;
    border-top: none;
    padding: 1rem 0;
}

.post-row:first-child {
    border-top: none;
    padding-top: 0;
}

.post-link {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--color-text-primary);
}

.post-row-title {
    font-weight: bold;
    font-size: 16px;
    color: var(--color-text-primary);
    line-height: 1.5;
    flex: 1;
    transition: border-bottom 0.2s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
    cursor: pointer;
}

.post-link:hover .post-row-title {
    border-bottom: 1px solid black;
}

.post-link:focus-visible .post-row-title {
    outline: 1px solid black;
    outline-offset: 0.2rem;
}

.post-row-date {
    font-size: 13px;
    color: var(--color-text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Archive page post rows */
.post-link-archive {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.3rem 0;
    text-decoration: none;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.post-link-archive:first-of-type {
    padding-top: 0;
}

.post-title-archive {
    font-weight: 400;
    font-size: 15px;
    margin: 0;
    padding-right: 1rem;
    line-height: 1.3;
    text-decoration-color: transparent;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.post-link-archive:hover .post-title-archive {
    color: #111;
    text-decoration: underline;
    text-decoration-color: black;
    text-underline-offset: 0.2rem;
}

.post-link-archive:hover .post-date-archive {
    color: #111;
    text-decoration: underline;
    text-decoration-color: black;
    text-underline-offset: 0.2rem;
}

.post-date-archive {
    font-size: 13px;
    color: var(--color-text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.pastposts {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
}

.pastposts.compact {
    margin-top: 0.8rem;
}

.post {
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: none;
}

.pastposts.compact .post {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.post:first-child {
    padding-top: 0;
    border-top: none;
}

.post p {
    margin: 0;
}

.posttitle {
    font-weight: bold;
    font-size: 16px;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.postdate {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.section-block {
    margin-bottom: 2rem;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
}

.list-items.compact {
    margin-top: 0.8rem;
}

.list-item {
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: none;
}

.list-items.compact .list-item {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.list-item:first-child {
    padding-top: 0;
    border-top: none;
}

.list-item p {
    margin: 0;
}

.item-title {
    font-weight: bold;
    font-size: 15px;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.list-items.compact .item-title {
    font-size: 15px;
    margin-bottom: 0.3rem;
}

.item-description {
    font-weight: normal;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-body);
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
}

.status-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    border-top: none;
}

.status-item:first-child {
    padding-top: 0;
    border-top: none;
}

.status-label {
    font-weight: bold;
    font-size: 15px;
    color: var(--color-text-primary);
    min-width: max-content;
}

.status-value {
    font-weight: normal;
    font-size: 15px;
    line-height: 1.5;
}

.footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: none;
    text-align: center;
}

.footer-text {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin: 0 0 0.3rem 0;
}

.footer-updated {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin: 0 0 0.3rem 0;
}

#current-time {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin: 0 0 1rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 13px;
}

.footer-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
    cursor: pointer;
}

.footer-links a:hover {
    opacity: 0.6;
    border-bottom: 1px solid black;
}

.footer-links a:focus {
    outline: 1px solid black;
    outline-offset: 0.2rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text-primary);
    background-color: white;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
    border-color: black;
}

.project-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle checkerboard overlay for retro/pixel visual style */
.project-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    background-size: 14px 14px;
    background-image: 
        linear-gradient(to right, #000 1px, transparent 1px),
        linear-gradient(to bottom, #000 1px, transparent 1px);
    z-index: 1;
}

.project-thumbnail.tag-web {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.project-thumbnail.tag-experiment {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.project-thumbnail.tag-tool {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.project-thumbnail-icon {
    font-size: 2.2rem;
    z-index: 2;
    filter: drop-shadow(1px 2px 0px rgba(0, 0, 0, 0.15));
    transform: scale(1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-thumbnail-icon {
    transform: scale(1.18) rotate(6deg);
}

.project-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-weight: bold;
    font-size: 15px;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
}

.project-description {
    font-size: 14px;
    color: var(--color-text-body);
    margin: 0 0 1rem 0;
    flex: 1;
}

.project-tag {
    font-size: 12px;
    color: var(--color-text-tertiary);
    padding: 0.2rem 0.5rem;
    background-color: #f0f0f0;
    border-radius: 4px;
    align-self: flex-start;
}

/* Updates Section */
.featured-update-link {
    display: block;
    text-decoration: none;
    color: var(--color-text-primary);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease;
}

.featured-update-link:hover {
    border-color: black;
}

.update-title {
    font-weight: bold;
    font-size: 15px;
    color: var(--color-text-primary);
    margin: 0 0 0.8rem 0;
}

.update-title::before,
.update-row-title::before {
    content: "# ";
    color: inherit;
}

.update-body {
    font-size: 15px;
    color: var(--color-text-body);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.update-read-more {
    font-size: 14px;
    color: var(--color-text-primary);
    margin: 0;
}

.past-updates {
    display: flex;
    flex-direction: column;
}

.update-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.3rem 0;
    text-decoration: none;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.update-row-title {
    font-size: 15px;
    color: var(--color-text-primary);
    margin: 0;
    padding-right: 1rem;
    text-decoration-color: transparent;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.update-row:hover .update-row-title {
    color: #111;
    text-decoration: underline;
    text-decoration-color: black;
    text-underline-offset: 0.2rem;
}

.update-row:hover .update-row-date {
    color: #111;
    text-decoration: underline;
    text-decoration-color: black;
    text-underline-offset: 0.2rem;
}

.update-row-date {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin: 0;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* Contact Section */
.contact-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-links a {
    text-decoration: none;
    color: #888;
    transition: color 0.2s ease;
}

.contact-links a::after {
    content: ' \2197';
    font-size: 0.85em;
    margin-left: 2px;
}

.contact-links a:hover {
    color: #111;
    text-decoration: none;
}

.contact-info {
    margin-top: 1rem;
}

.contact-text {
    font-size: 15px;
    color: var(--color-text-body);
    margin: 0 0 0.5rem 0;
}

.contact-email {
    font-size: 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.contact-email:hover {
    border-bottom: 1px solid black;
}

/* Pixel Accents */
.pixel-accent {
    position: absolute;
    opacity: 0.85;
    z-index: -1;
    pointer-events: none;
    user-select: none;
}

/* Specific Positions for Index */
.idx-flower {
    top: 5%;
    right: -8%;
}

.idx-star1 {
    top: 15%;
    left: -10%;
    transform: rotate(15deg);
}

.idx-star2 {
    top: 45%;
    right: -5%;
}

.idx-cloud {
    top: -2%;
    left: 10%;
    opacity: 0.6;
}

.idx-bird {
    top: 30%;
    right: 15%;
}

.idx-mug {
    top: 65%;
    left: -8%;
    transform: rotate(-10deg);
}

.idx-crt {
    top: 85%;
    right: -12%;
}

.idx-gameboy {
    bottom: 5%;
    left: -10%;
    transform: rotate(10deg);
}

.idx-grass {
    bottom: -1%;
    right: 20%;
}

.idx-arrow {
    top: 55%;
    left: 45%;
    opacity: 0.5;
}

/* Specific Positions for Writing */
.wrt-floppy {
    top: 10%;
    right: -10%;
    transform: rotate(15deg);
}

.wrt-star {
    top: 25%;
    left: -5%;
}

.wrt-cloud {
    top: 40%;
    right: -5%;
}

.wrt-flower {
    top: 60%;
    left: -8%;
    transform: rotate(-20deg);
}

.wrt-grass {
    bottom: 5%;
    left: 15%;
}

/* Interactive Companion */
#pixel-companion {
    position: fixed;
    width: 32px;
    height: 32px;
    background: url('../assets/companion.svg') no-repeat;
    background-position: 0px 0px;
    z-index: 1000;
    cursor: pointer;
    image-rendering: pixelated;
    /* Important for sharp pixels */
    transition: left 0.15s linear;
}

/* Command Palette */
#command-palette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    padding-top: 4rem;
    backdrop-filter: blur(4px);
}

#command-palette.visible {
    display: flex;
}

.command-palette-content {
    width: 100%;
    max-width: 500px;
    border: 1px solid black;
}

.command-palette-header {
    padding: 1rem;
    border-bottom: 1px solid black;
}

.command-input {
    width: 100%;
    border: none;
    padding: 0;
    font-size: 15px;
    outline: none;
    background: transparent;
    color: black;
}

.command-palette-list {
    max-height: 400px;
    overflow-y: auto;
}

.command-item {
    padding: 0.8rem 1rem;
    border-top: 1px solid black;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.1s ease;
}

.command-item:hover,
.command-item.selected {
    background-color: black;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1.5rem;
    }

    .main {
        max-width: 100%;
    }

    section {
        margin-bottom: 2.5rem;
    }

    .name {
        font-size: 24px;
        margin: 0 0 1.5rem 0;
    }

    .nav {
        gap: 2rem;
        margin: 0 0 2.5rem 0;
    }

    .h24all {
        font-size: 15px;
        margin: 0 0 1.2rem 0;
    }

    .section-header {
        margin-bottom: 0.4rem;
    }

    .view-all {
        font-size: 13px;
    }

    .page-title {
        font-size: 22px;
    }

    .post-row {
        padding: 0.8rem 0;
    }

    .post-row-title {
        font-size: 15px;
    }

    .post-row-date {
        font-size: 12px;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .list-item {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .item-title {
        font-size: 15px;
    }

    .status-item {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .status-label {
        font-size: 14px;
    }

    .status-value {
        font-size: 14px;
    }

    .footer {
        margin-top: 3.5rem;
        padding-top: 1.5rem;
    }

    .footer-text {
        font-size: 12px;
        margin: 0 0 0.3rem 0;
    }

    .footer-updated {
        font-size: 12px;
        margin: 0 0 0.3rem 0;
    }

    #current-time {
        font-size: 12px;
        margin: 0 0 0.8rem 0;
    }

    .footer-links {
        gap: 1.2rem;
        font-size: 12px;
    }

    .command-palette-content {
        max-width: calc(100% - 3rem);
    }

    .pixel-accent {
        opacity: 0.3;
        /* Less prominent on mobile to avoid cluttering */
    }

    .idx-flower {
        top: 5%;
        right: 2%;
    }

    .idx-star1 {
        top: 15%;
        left: 2%;
    }

    .idx-star2 {
        top: 45%;
        right: 2%;
    }

    .idx-cloud {
        top: -1%;
        left: 10%;
    }

    .idx-bird {
        top: 30%;
        right: 5%;
    }

    .idx-mug {
        top: 65%;
        left: 2%;
    }

    .idx-crt {
        top: 85%;
        right: 2%;
    }

    .idx-gameboy {
        bottom: 5%;
        left: 2%;
    }

    .idx-grass {
        bottom: -1%;
        right: 10%;
    }

    .wrt-floppy {
        top: 10%;
        right: 2%;
    }

    .wrt-star {
        top: 25%;
        left: 2%;
    }

    .wrt-cloud {
        top: 40%;
        right: 2%;
    }

    .wrt-flower {
        top: 60%;
        left: 2%;
    }

    .wrt-grass {
        bottom: 5%;
        left: 10%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
        font-size: 14px;
    }

    .main {
        max-width: 100%;
    }

    section {
        margin-bottom: 2rem;
    }

    .name {
        font-size: 22px;
        margin: 0 0 1.2rem 0;
    }

    .nav {
        gap: 1.5rem;
        margin: 0 0 2rem 0;
        font-size: 14px;
    }

    .general {
        font-size: 14px;
    }

    .h24all {
        font-size: 15px;
        margin: 0 0 1rem 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.3rem;
    }

    .section-header .h24all {
        margin: 0 0 0.5rem 0;
    }

    .view-all {
        font-size: 12px;
    }

    .page-title {
        font-size: 20px;
    }

    .post-row {
        padding: 0.6rem 0;
        flex-direction: column;
        gap: 0.3rem;
    }

    .post-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .post-row-title {
        font-size: 14px;
    }

    .post-row-date {
        font-size: 11px;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .post {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .posttitle {
        font-size: 14px;
        margin-bottom: 0.4rem;
    }

    .postdate {
        font-size: 11px;
    }

    .list-item {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .item-title {
        font-size: 15px;
        margin-bottom: 0.4rem;
    }

    .item-description {
        font-size: 14px;
    }

    .status-item {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
        gap: 0.5rem;
    }

    .status-label {
        font-size: 14px;
    }

    .status-value {
        font-size: 14px;
    }

    .footer {
        margin-top: 3rem;
        padding-top: 1.2rem;
    }

    .footer-text {
        font-size: 11px;
        margin: 0 0 0.2rem 0;
    }

    .footer-updated {
        font-size: 11px;
        margin: 0 0 0.2rem 0;
    }

    #current-time {
        font-size: 11px;
        margin: 0 0 0.6rem 0;
    }

    .footer-links {
        gap: 1rem;
        font-size: 11px;
    }

    .command-palette-content {
        max-width: calc(100% - 2rem);
    }

    .command-input {
        font-size: 14px;
    }

    .command-item {
        font-size: 13px;
    }
}

/* Blog Post Page Styles */
.post-title {
    font-weight: bold;
    font-size: 26px;
    color: var(--color-text-primary);
    margin: 1.5rem 0 0.5rem 0;
    line-height: 1.3;
}

.post-meta {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin: 0 0 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    border-bottom: 8px solid transparent;
    padding-bottom: 1rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
}

.post-meta-tag {
    background-color: #f0f0f0;
    color: var(--color-text-body);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 12px;
}

.toc-container {
    background: #fafafa;
    border: 1px dashed var(--color-text-tertiary);
    border-radius: 6px;
    padding: 1.2rem;
    margin: 2rem 0;
}

.toc-title {
    font-weight: bold;
    font-size: 15px;
    margin: 0 0 0.8rem 0;
    color: var(--color-text-primary);
}

.toc-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.toc-item a {
    color: var(--color-text-body);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid transparent;
}

.toc-item a:hover {
    color: black;
    border-bottom: 1px solid black;
}

/* Post Body Content Styles */
.post-body h2 {
    font-weight: bold;
    font-size: 15px;
    color: var(--color-text-primary);
    margin: 2rem 0 1rem 0;
}

.post-body h3 {
    font-weight: bold;
    font-size: 15px;
    color: var(--color-text-primary);
    margin: 1.5rem 0 0.8rem 0;
}

.post-body p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 1.2rem 0;
    color: var(--color-text-body);
}

.post-body a {
    color: var(--color-text-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-text-tertiary);
    text-underline-offset: 0.2rem;
}

.post-body a:hover {
    text-decoration-color: black;
}

.post-body blockquote {
    margin: 1.5rem 0;
    padding: 0.5rem 0 0.5rem 1.2rem;
    border-left: 3px solid black;
    font-style: italic;
    background-color: #fafafa;
}

.post-body blockquote p {
    margin: 0;
}

.post-body ul, .post-body ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}

.post-body li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: var(--color-text-body);
}

.post-body pre {
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-body code {
    font-size: 14px;
    background-color: #f7f7f7;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.post-body pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.post-body figure {
    margin: 2rem 0;
    text-align: center;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.post-body figcaption {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 0.6rem;
}

/* Post Navigation (Prev/Next) */
.post-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.post-nav-prev, .post-nav-next {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text-primary);
}

.post-nav-next {
    text-align: right;
    align-items: flex-end;
}

.post-nav-label {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-bottom: 0.3rem;
}

.post-nav-title {
    font-weight: bold;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s ease;
}

.post-nav-prev:hover .post-nav-title,
.post-nav-next:hover .post-nav-title {
    border-bottom: 1px solid black;
}

@media (max-width: 480px) {
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .post-nav-next {
    }
}

/* 404 Page Styles */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 2rem;
}

.error-illustration {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.error-code {
    font-weight: bold;
    font-size: 64px;
    color: var(--color-text-primary);
    margin: 0 0 1rem 0;
    line-height: 1;
}

.error-title {
    font-weight: bold;
    font-size: 15px;
    color: var(--color-text-primary);
    margin: 0 0 1rem 0;
}

.error-description {
    font-size: 15px;
    color: var(--color-text-body);
    margin: 0 0 2rem 0;
    max-width: 320px;
    line-height: 1.6;
}

.btn-home {
    display: inline-block;
    font-weight: bold;
    font-size: 15px;
    color: white;
    background-color: black;
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border: 1px solid black;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn-home:hover {
    background-color: white;
    color: black;
}

.btn-home:active {
    transform: scale(0.97);
}
/* === GLOBAL TYPOGRAPHY HIERARCHY === */

/* LEVEL 1: Main titles */
h1, .name, .page-title, .post-title {
    font-weight: 800 !important;
    color: #111 !important;
}

/* LEVEL 2: Subtitles */
h2, h3, h4, h5, h6,
strong, b,
.status-label,
.h24all, .item-title, .project-title, .update-title,
.error-title, .toc-title,
.post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

/* LEVEL 3: Content */
body, p, li, span, a, .post-nav-label {
    font-size: 15px;
    font-weight: 400;
    color: #666;
    line-height: 1.8;
}
