* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

h1 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 64px;
}

.works {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.work {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.work:hover,
.work:focus-within {
    border-color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.work-content {
    min-width: 0;
}

.work-link {
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.work-link:focus-visible,
.like-button:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 4px;
    border-radius: 6px;
}

.work h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.work p {
    font-size: 16px;
    color: #666666;
}

.work-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    cursor: default;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.work:hover .badge {
    background-color: #eeeeee;
    border-color: #cccccc;
}

.badge-online {
    color: #2d8a4e;
    background-color: #e8f5e9;
    border-color: #a5d6a7;
}

.work:hover .badge-online {
    background-color: #d0f0d4;
    border-color: #66bb6a;
}

.like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 68px;
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    background: #ffffff;
    color: #555555;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.like-button:hover:not(:disabled) {
    background-color: #fff8f0;
    border-color: #f0b775;
    transform: translateY(-1px);
}

.like-button.is-liked,
.like-button:disabled {
    background-color: #fff4e6;
    border-color: #f2c38d;
    color: #8c5418;
}

.like-button:disabled {
    cursor: default;
}

.like-emoji {
    line-height: 1;
}

.like-message {
    min-height: 24px;
    margin-top: 20px;
    color: #666666;
    font-size: 14px;
    text-align: right;
}

footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid #f0f0f0;
}

footer a {
    color: #888888;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

@media (max-width: 600px) {
    main {
        padding: 80px 20px 60px;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 48px;
    }

    .work {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 24px;
    }

    .work h2 {
        font-size: 20px;
    }

    .work-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .badge {
        font-size: 13px;
        padding: 6px 14px;
    }

    .like-message {
        text-align: left;
    }
}
