/* Basic reset + fonts */
:root {
    --bg: #151627;
    --text: #a2a3aa;

    --panel: #151527;
    --muted: #5d5d6b;
    --soft: #616271;
    --accent: #c6797e;
    --accent-soft: #d7a1a5;
    --green: #969e92;
    --light: #e6dcc4;
    --blue: #6e94b9;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Noto Mono", monospace;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--muted);
    font-family: "Georgia", serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* top nav */
.topnav {
    position: fixed;
    right: 58px;
    top: 28px;
    display: flex;
    gap: 22px;
    z-index: 40;
    font-family: var(--mono);
    font-size: 14px;
    background: rgba(21, 22, 39, 0.7);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    border-radius: 4px;
}

.topnav a {
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.topnav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    transition: width 0.3s ease;
}

.topnav a:hover {
    color: var(--accent-soft);
    text-shadow: 0 0 8px rgba(215, 161, 165, 0.4);
    transform: translateY(-2px);
}

.topnav a:hover::after {
    width: 100%;
}

/* page grid */
.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 780px) 1fr;
    gap: 48px;
    align-items: start;
    padding: 125px 0 120px 80px;
    overflow: visible;
}

/* left column */
.left {
    max-width: 780px;
    width: 100%;
    overflow: hidden;
}

.logo {
    font-family: var(--mono);
    color: #d9d9d9;
    margin: 0 0 14px 0;
    font-size: 11px;
    line-height: 1;
    white-space: pre;
    opacity: 0.95;
    width: max-content;
    animation: logoFadeInGlow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
    will-change: opacity, filter;
}

.tags-carousel {
    overflow: hidden;
    margin: 14px 0 24px 0;
    position: relative;
    width: calc(100% - 72px);
    max-width: calc(100% - 72px);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    animation: slideUpFade 0.8s ease-out 0.2s both;
}

.tags-track {
    display: flex;
    gap: 16px;
    animation: scroll-tags 30s linear infinite;
    width: fit-content;
    will-change: transform;
}

.tag {
    color: var(--muted);
    font-size: 13px;
    font-family: var(--mono);
    white-space: nowrap;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.tag:hover {
    opacity: 1;
    color: var(--accent-soft);
    text-shadow: 0 0 8px rgba(215, 161, 165, 0.3);
    transform: translateY(-2px);
}

@keyframes scroll-tags {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* entrance animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFadeInGlow {
    0% {
        opacity: 0;
        filter: brightness(0.5) drop-shadow(0 0 0px rgba(215, 161, 165, 0));
    }

    50% {
        filter: brightness(1) drop-shadow(0 0 12px rgba(215, 161, 165, 0.4));
    }

    100% {
        opacity: 0.95;
        filter: brightness(1) drop-shadow(0 0 0px rgba(215, 161, 165, 0));
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.intro {
    padding: 4px 0 0 0;
    animation: slideUpFade 0.8s ease-out 0.3s both;
}

.intro p {
    margin: 0 0 16px 0;
    line-height: 1.5;
    color: #a2a3aa;
    font-size: 15px;
}

.intro a {
    color: var(--accent-soft);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.intro a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-soft);
    transition: width 0.3s ease;
}

.intro a:hover::after {
    width: 100%;
}

.intro a:hover {
    text-shadow: 0 0 8px rgba(215, 161, 165, 0.4);
    color: var(--accent);
}

/* content sections */
.content-section {
    margin: 48px 0 0 0;
    padding: 36px 0 24px 0;
    border-top: 1px solid rgba(167, 163, 159, 0.15);
    animation: slideUpFade 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.content-section+.content-section {
    margin-top: 12px;
}

.content-section h3 {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.content-section p {
    margin: 0;
    line-height: 1.65;
    color: #a8a8a8;
    font-size: 15px;
}

.content-section a {
    color: var(--accent-soft);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.content-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-soft);
    transition: width 0.3s ease;
}

.content-section a:hover {
    text-shadow: 0 0 8px rgba(215, 161, 165, 0.4);
    color: var(--accent);
}

.content-section a:hover::after {
    width: 100%;
}

/* featured video card */
.featured-video {
    margin-top: 20px;
    border: 1px solid rgba(198, 121, 126, 0.25);
    border-radius: 4px;
    background: rgba(21, 21, 39, 0.3);
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    animation: slideUpFade 0.8s ease-out 0.4s both;
}

.featured-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(198, 121, 126, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.featured-video:hover::before {
    opacity: 1;
}

.featured-video:hover {
    border-color: rgba(198, 121, 126, 0.6);
    background: rgba(21, 21, 39, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(198, 121, 126, 0.15);
}

.video-header {
    padding: 10px 14px;
    background: rgba(21, 21, 39, 0.5);
    border-bottom: 1px solid rgba(198, 121, 126, 0.15);
}

.video-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    transition: all 0.3s ease;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.featured-video:hover .video-thumbnail img {
    opacity: 1;
    transform: scale(1.02);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(198, 121, 126, 0.3);
    border: 2px solid var(--accent-soft);
    border-radius: 50%;
    font-size: 24px;
    color: var(--accent-soft);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(215, 161, 165, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(215, 161, 165, 0);
    }
}

.featured-video:hover .play-overlay {
    background: rgba(198, 121, 126, 0.7);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(215, 161, 165, 0.8);
    animation: none;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
    padding: 12px 14px;
    background: rgba(21, 21, 39, 0.4);
    border-top: 1px solid rgba(198, 121, 126, 0.1);
}

.video-title {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--soft);
    line-height: 1.4;
}

/* right column (image) */
.right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: visible;
}

/* changelog */
.changelog {
    margin-top: 48px;
    margin-right: 80px;
    padding: 18px;
    width: 360px;
    border: 1px solid rgba(198, 121, 126, 0.25);
    border-radius: 4px;
    background: rgba(21, 21, 39, 0.5);
    font-family: var(--mono);
    font-size: 13px;
    animation: slideUpFade 0.8s ease-out 0.3s both;
    transition: all 0.3s ease;
}

.changelog:hover {
    border-color: rgba(198, 121, 126, 0.4);
    background: rgba(21, 21, 39, 0.7);
    box-shadow: 0 0 16px rgba(198, 121, 126, 0.1);
}

.changelog-header {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    opacity: 0.8;
}

.changelog-version {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(198, 121, 126, 0.15);
    padding-bottom: 12px;
}

.version-number {
    color: var(--accent-soft);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.version-date {
    color: var(--muted);
    font-size: 11px;
    opacity: 0.7;
}

.changelog-content {
    margin-bottom: 12px;
    color: var(--soft);
    line-height: 1.5;
}

.changelog-content p {
    margin: 0;
}

.changelog-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid rgba(198, 121, 126, 0.35);
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.changelog-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(198, 121, 126, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.changelog-link:hover::before {
    transform: scaleX(1);
}

.changelog-link:hover {
    color: var(--accent-soft);
    border-color: rgba(198, 121, 126, 0.7);
    transform: translateX(2px);
}

/* links section */
.links-section {
    margin-top: 48px;
    margin-right: 80px;
    width: 360px;
    animation: slideUpFade 0.8s ease-out 0.35s both;
}

.links-divider {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    opacity: 0.3;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.links-header {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-list a {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--soft);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
    position: relative;
    display: inline-block;
    width: fit-content;
}

.links-list a::before {
    content: "→ ";
    opacity: 0;
    margin-right: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.links-list a:hover {
    color: var(--accent-soft);
    text-shadow: 0 0 8px rgba(215, 161, 165, 0.3);
    transform: translateX(8px);
}

.links-list a:hover::before {
    opacity: 1;
}

/* site footer */
.site-footer {
    margin: 80px 80px 40px 80px;
    padding: 20px 0;
    border-top: 1px solid rgba(167, 163, 159, 0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
}

.footer-text {
    opacity: 0.6;
}

.footer-separator {
    opacity: 0.3;
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    margin-left: auto;
}

.site-footer:hover .footer-logo {
    opacity: 0.8;
}

.portrait-wrap {
    width: 360px;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(198, 121, 126, 0.2);
    background: #151627;
    margin-right: 80px;
    box-shadow: 0 0 20px rgba(198, 121, 126, 0.08);
    transition: box-shadow 0.3s ease;
}

.portrait-wrap:hover {
    box-shadow: 0 0 40px rgba(198, 121, 126, 0.2);
}

/* canvas for recursive tree */
#tree-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: none;
    image-rendering: crisp-edges;
}



/* responsive */
@media (max-width:880px) {
    .page {
        grid-template-columns: 1fr;
        padding: 80px 28px;
        gap: 28px
    }

    .left {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .tags-carousel {
        width: calc(100% - 14px);
        max-width: calc(100% - 14px);
        margin-left: 0;
        margin-right: 0;
    }

    .right {
        display: none;
    }

    .portrait-wrap {
        width: 260px
    }

    .topnav {
        right: 18px;
        top: 18px
    }

    .site-footer {
        margin: 60px 28px 32px 28px;
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 8px;
    }

    .interest-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-interests {
        padding-right: 28px;
    }

    .page-interest-detail {
        padding-right: 28px;
    }

    .top-five-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .other-picks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:640px) {

    .top-five-grid,
    .other-picks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .favorite-card,
    .other-pick-card {
        padding: 0;
        overflow: hidden;
    }

    .favorite-image,
    .other-pick-image {
        width: 100%;
        aspect-ratio: 2 / 3;
        border: 0;
        display: block;
    }
}

@media (max-width:460px) {

    .top-five-grid,
    .other-picks-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CRT TEXTURE OVERLAY ===== */
.crt::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;

    /* layer 1 — horizontal scanlines */
    background:
        repeating-linear-gradient(to bottom,
            rgba(0, 0, 0, 0.35) 0px,
            rgba(0, 0, 0, 0.35) 1px,
            transparent 1px,
            transparent 3px),

        /* layer 2 — RGB vertical mask */
        repeating-linear-gradient(to right,
            rgba(255, 0, 0, 0.06) 0px,
            rgba(0, 255, 0, 0.06) 1px,
            rgba(0, 0, 255, 0.06) 2px,
            transparent 3px);

    mix-blend-mode: overlay;
    opacity: 0.35;
    animation: crt-flicker 8s infinite alternate;
}

/* vignette + screen curve */
.crt::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;

    background: radial-gradient(ellipse at center,
            transparent 50%,
            rgba(0, 0, 0, 0.6) 100%);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.4);
}

/* animated moving scanline */
.crt {
    position: relative;
}

.crt::after::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
    pointer-events: none;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

@keyframes crt-flicker {
    0% {
        opacity: 0.32;
    }

    50% {
        opacity: 0.38;
    }

    100% {
        opacity: 0.35;
    }
}

/* chromatic aberration on text */
.logo,
.content-section h3 {
    text-shadow:
        -1px 0 0 rgba(255, 0, 0, 0.15),
        1px 0 0 rgba(0, 255, 255, 0.15);
}

/* ===== PAGE-SPECIFIC STYLES ===== */

/* shared full-width layout */
.full-width {
    max-width: 920px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 28px 0 12px 0;
    animation: slideUpFade 0.8s ease-out 0.1s both;
}

.page-subtitle {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 32px 0;
    opacity: 0.8;
    animation: slideUpFade 0.8s ease-out 0.2s both;
}

/* Single-column layout for secondary pages */
.page-blog,
.page-interests,
.page-guestbook,
.page-about {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

.page-blog .full-width,
.page-guestbook .full-width,
.page-about .about-content {
    max-width: 780px;
    width: 100%;
    margin: 0;
}

.page-interests .full-width {
    max-width: 100%;
    width: 100%;
}

.page-interests {
    padding-right: 80px;
}

/* ===== INTERESTS PAGE ===== */
.int-divider {
    margin: 40px 0 24px 0;
    padding: 28px 0 0 0;
    border-top: 1px solid rgba(167, 163, 159, 0.15);
    animation: slideUpFade 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.int-divider h3 {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
    text-shadow:
        -1px 0 0 rgba(255, 0, 0, 0.15),
        1px 0 0 rgba(0, 255, 255, 0.15);
}

.interest-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 0;
    animation: slideUpFade 0.8s ease-out 0.1s both;
}

.interest-hub {
    border: 1px solid rgba(198, 121, 126, 0.18);
    background: rgba(21, 21, 39, 0.35);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px;
    padding: 20px;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.interest-hub:nth-child(1) {
    animation-delay: 0s;
}

.interest-hub:nth-child(2) {
    animation-delay: 0.1s;
}

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

.interest-hub:nth-child(4) {
    animation-delay: 0.3s;
}

.interest-hub:hover {
    border-color: rgba(198, 121, 126, 0.6);
    background: rgba(21, 21, 39, 0.7);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(198, 121, 126, 0.15);
}

.hub-bg-num {
    position: absolute;
    top: -16px;
    right: -6px;
    font-family: var(--mono);
    font-size: 108px;
    font-weight: 800;
    color: var(--light);
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
    user-select: none;
}

.interest-hub:hover .hub-bg-num {
    opacity: 0.09;
}

.hub-index {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    opacity: 0.5;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.hub-label {
    font-family: var(--mono);
    color: var(--light);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
    transition: color 0.25s ease;
}

.interest-hub:hover .hub-label {
    color: var(--accent-soft);
}

.hub-enter {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent-soft);
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.interest-hub:hover .hub-enter {
    opacity: 1;
    transform: translateY(0);
}

.hub-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.35s ease;
}

.interest-hub:hover .hub-line {
    width: 100%;
}

/* Minor interests */
.minor-interests {
    padding-top: 0;
    animation: slideUpFade 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.minor-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 4px;
}

.minor-tag {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted);
    padding: 5px 11px;
    border: 1px solid rgba(167, 163, 159, 0.14);
    background: rgba(21, 21, 39, 0.25);
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    cursor: default;
    letter-spacing: 0.03em;
}

.minor-tag:hover {
    color: var(--accent-soft);
    border-color: rgba(198, 121, 126, 0.35);
    background: rgba(198, 121, 126, 0.06);
}

.minor-tag.dim {
    opacity: 0.45;
    font-size: 11px;
}

.minor-tag.bright {
    color: var(--accent-soft);
    border-color: rgba(198, 121, 126, 0.28);
    opacity: 0.9;
}

/* ===== CATEGORY DETAIL PAGES ===== */
.page-interest-detail {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding-right: 80px;
}

.page-interest-detail .full-width {
    max-width: 100%;
    width: 100%;
}

.top-five-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    animation: slideUpFade 0.8s ease-out 0.1s both;
}

.favorite-card {
    position: relative;
    background: linear-gradient(180deg, rgba(38, 37, 59, 0.65) 0%, rgba(21, 21, 39, 0.35) 100%);
    border: 1px solid rgba(198, 121, 126, 0.2);
    padding: 10px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    animation: slideUpFade 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.favorite-card:hover {
    transform: translateY(-6px);
    border-color: rgba(198, 121, 126, 0.6);
    box-shadow: 0 16px 32px rgba(198, 121, 126, 0.15);
}

.favorite-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent-soft);
    letter-spacing: 0.06em;
    background: rgba(21, 22, 39, 0.75);
    border: 1px solid rgba(198, 121, 126, 0.22);
    padding: 2px 6px;
    z-index: 2;
}

.favorite-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(167, 163, 159, 0.15);
    filter: saturate(0.9) contrast(1.05);
    transition: filter 0.3s ease;
}

.favorite-card:hover .favorite-image {
    filter: saturate(1.05) contrast(1.1);
}

.favorite-name {
    margin: 10px 0 2px 0;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--light);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.other-picks-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    animation: slideUpFade 0.8s ease-out 0.1s both;
}

.other-pick-card {
    background: linear-gradient(180deg, rgba(38, 37, 59, 0.6) 0%, rgba(21, 21, 39, 0.32) 100%);
    border: 1px solid rgba(167, 163, 159, 0.16);
    padding: 10px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    animation: slideUpFade 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.other-pick-card:hover {
    transform: translateY(-5px);
    border-color: rgba(198, 121, 126, 0.55);
    box-shadow: 0 14px 28px rgba(198, 121, 126, 0.12);
}

.other-pick-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(167, 163, 159, 0.14);
    filter: saturate(0.9) contrast(1.03);
    transition: filter 0.3s ease;
}

.other-pick-card:hover .other-pick-image {
    filter: saturate(1.03) contrast(1.08);
}

.other-pick-name {
    margin: 10px 0 2px 0;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--soft);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.other-pick-card:hover .other-pick-name {
    color: var(--accent-soft);
}

/* ===== BLOG PAGE ===== */
.blog-timeline {
    margin-top: 36px;
}

.blog-entry {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(167, 163, 159, 0.1);
    animation: slideUpFade 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.blog-entry:last-child {
    border-bottom: none;
}

.entry-meta {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 12px;
}

.entry-date {
    color: var(--accent);
    font-weight: 600;
}

.entry-time {
    color: var(--muted);
    opacity: 0.7;
}

.entry-title {
    font-family: var(--mono);
    color: var(--light);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    letter-spacing: 0.03em;
}

.entry-content p {
    color: var(--text);
    line-height: 1.65;
    margin: 0 0 14px 0;
}

.entry-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.entry-tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    background: rgba(198, 121, 126, 0.1);
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid rgba(198, 121, 126, 0.2);
}

/* ===== GUESTBOOK PAGE ===== */
.guestbook-form {
    margin: 32px 0 48px 0;
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(21, 21, 39, 0.5);
    border: 1px solid rgba(198, 121, 126, 0.25);
    border-radius: 4px;
    padding: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(198, 121, 126, 0.5);
    background: rgba(21, 21, 39, 0.7);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
    opacity: 0.5;
}

.submit-btn {
    background: rgba(198, 121, 126, 0.15);
    border: 1px solid rgba(198, 121, 126, 0.4);
    color: var(--accent-soft);
    padding: 12px 24px;
    font-family: var(--mono);
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.submit-btn:hover {
    background: rgba(198, 121, 126, 0.25);
    border-color: rgba(198, 121, 126, 0.6);
    transform: translateY(-2px);
}

.guestbook-entries {
    margin-top: 48px;
}

.entries-title {
    font-family: var(--mono);
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 32px 0;
    opacity: 0.7;
}

.guestbook-entry {
    background: rgba(21, 21, 39, 0.3);
    border-left: 2px solid rgba(198, 121, 126, 0.3);
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    animation: slideUpFade 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.guestbook-entry:hover {
    background: rgba(21, 21, 39, 0.5);
    border-left-color: rgba(198, 121, 126, 0.7);
    transform: translateX(4px);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-author {
    font-family: var(--mono);
    color: var(--accent-soft);
    font-size: 13px;
    font-weight: 600;
}

.entry-timestamp {
    font-family: var(--mono);
    color: var(--muted);
    font-size: 11px;
    opacity: 0.7;
}

.entry-message {
    color: var(--text);
    line-height: 1.6;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.entry-website {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.entry-website:hover {
    color: var(--accent-soft);
    text-shadow: 0 0 8px rgba(215, 161, 165, 0.4);
}

/* ===== ABOUT PAGE ===== */
.about-content {
    max-width: 680px;
    margin: 0 auto;
}

.about-text {
    margin-top: 32px;
    animation: slideUpFade 0.8s ease-out 0.1s both;
}

.about-text p {
    color: var(--text);
    line-height: 1.65;
    margin: 0 0 16px 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid rgba(167, 163, 159, 0.15);
    border-bottom: 1px solid rgba(167, 163, 159, 0.15);
    animation: slideUpFade 0.8s ease-out 0.2s both;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-value {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--accent-soft);
    font-weight: 600;
}

.about-links,
.about-colophon {
    margin: 32px 0;
    animation: slideUpFade 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.about-links h3,
.about-colophon h3 {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-list li {
    margin-bottom: 8px;
}

.links-list a {
    font-family: var(--mono);
    color: var(--soft);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.links-list a:hover {
    color: var(--accent-soft);
    text-shadow: 0 0 8px rgba(215, 161, 165, 0.4);
    transform: translateX(4px);
    display: inline-block;
}

.about-colophon p {
    color: var(--soft);
    font-size: 14px;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tech-stack code {
    font-family: var(--mono);
    background: rgba(198, 121, 126, 0.1);
    border: 1px solid rgba(198, 121, 126, 0.2);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: var(--accent);
}

/* Responsive adjustments for new pages */
@media (max-width:880px) {
    .interests-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Keep card grids responsive on interest detail pages. Placed at end to win cascade. */
@media (max-width:640px) {

    .page-interest-detail .top-five-grid,
    .page-interest-detail .other-picks-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width:460px) {

    .page-interest-detail .top-five-grid,
    .page-interest-detail .other-picks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Ensure interests hub is 2x2 on mobile while desktop remains 4x1. */
@media (max-width:880px) {
    .page-interests .interest-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}