* {
    cursor: none !important;
}

body {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    color: #666;
    background-color: #fefefe;
    margin: 0;
    padding: 2rem 1rem 4rem;
    position: relative;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1 {
    font-size: 20px;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 700;
}

.page-intro {
    font-size: 14px;
    color: #807e7e;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: #a898e9;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    text-decoration: underline;
}

.flowchart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.1rem;
    padding: 1rem 0 2rem;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: visible;
}

.flow-row {
    display: contents;
}

.flow-row-divider {
    display: none;
}

.flow-node {
    width: clamp(54px, 10vw, 82px);
    height: clamp(54px, 10vw, 82px);
    border-radius: 50%;
    border: 2px dashed #a898e9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #555;
    font-size: clamp(7px, 0.85vw, 9px);
    line-height: 1.35;
    padding: 0.4rem;
    transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.flow-node:hover {
    background-color: rgba(168, 152, 233, 0.12);
    border-color: #8b7ad4;
    transform: scale(1.06);
    color: #a898e9;
}

.flow-arrow {
    color: #ccc;
    font-size: clamp(10px, 1.1vw, 14px);
    user-select: none;
    line-height: 1;
}

.posts-list {
    display: flex;
    flex-direction: column;
}

.post-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 2rem;
    align-items: start;
    border: 1px dashed #ccc;
    padding: 1.25rem 1.5rem;
    margin-top: -1px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.post-box:first-child {
    margin-top: 0;
}

.post-box:hover {
    background-color: rgba(168, 152, 233, 0.07);
}

.post-title {
    font-size: 15px;
    font-weight: 700;
    color: #555;
    margin: 0 0 0.35rem 0;
    line-height: 1.4;
}

.post-box:hover .post-title {
    color: #a898e9;
}

.post-desc {
    font-size: 13px;
    color: #807e7e;
    line-height: 1.5;
    margin: 0;
}

.post-meta {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    text-align: right;
    padding-top: 0.1rem;
}

.empty-state {
    border: 1px dashed #ddd;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.notes-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.notes-stack img {
    display: block;
    width: 340px;
    max-width: min(340px, 100%);
    height: auto;
}

.home-link {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #a898e9;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.home-link:hover {
    text-decoration: underline;
}

#custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 9999;
    transform-origin: 0 0;
    transition: transform 0.1s ease;
}

#custom-cursor svg {
    width: 100%;
    height: 100%;
}

#custom-cursor.hover {
    width: 28px;
    height: 28px;
}

@media (max-width: 600px) {
    .flowchart {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1rem;
        width: 100%;
        left: auto;
        transform: none;
        padding: 1rem 0.5rem 2rem;
    }

    .flow-row {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 0.35rem;
        row-gap: 0.75rem;
    }

    .flow-row-divider {
        display: block;
        color: #ccc;
        font-size: 16px;
        line-height: 1;
        user-select: none;
    }

    .flow-arrow--between-rows {
        display: none;
    }

    .flow-node {
        width: 76px;
        height: 76px;
        font-size: 9px;
        padding: 0.5rem;
    }

    .flow-arrow {
        font-size: 14px;
    }

    .post-box {
        grid-template-columns: 1fr;
    }

    .post-meta {
        text-align: left;
    }

    .home-link {
        top: 15px;
        right: 15px;
        font-size: 14px;
    }
}

@media (hover: none) or (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    #custom-cursor {
        display: none !important;
    }
}
