html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

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

body {
    background-color: #1e1e1e;
    color: #b4b4b4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 80px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 650px;
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0.5rem;
    z-index: 1;
    padding: 0.35rem 0.5rem;
    background: #1e1e1e;
    color: #b4b4b4;
    font-size: 14px;
}

.skip-link:focus {
    left: 20px;
    outline: 1px solid #666;
    outline-offset: 2px;
}

header {
    margin-bottom: 28px;
}

a.back {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    line-height: 1;
    margin: 0 0 10px 0;
    text-decoration: none;
    text-underline-offset: 0;
    padding: 6px 8px 6px 0;
    min-height: 2.5rem;
    color: #b4b4b4;
    font-size: 15px;
    font-weight: 500;
}

a.back .back-icon {
    display: block;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

a.back .back-text {
    position: relative;
    top: 0.02em;
}

a.back:hover,
a.back:focus-visible {
    color: #e8e8e8;
    text-decoration: none;
}

a.back:focus-visible {
    outline: 1px solid #666;
    outline-offset: 3px;
    border-radius: 2px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

main {
    margin-bottom: 0;
}

.bio {
    color: #b4b4b4;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 32px 0;
}

.repo-link {
    color: #b4b4b4;
    font-size: 16px;
    line-height: 1.7;
    margin: 24px 0 24px 0;
}

.tui-shot {
    margin: 0 0 8px 0;
    max-width: 100%;
}

.image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
}

.image-trigger:focus-visible {
    outline: 1px solid #777;
    outline-offset: 4px;
    border-radius: 3px;
}

.tui-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
}

.tui-shot-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

body.modal-open {
    overflow: hidden;
}

.image-modal[hidden] {
    display: none;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(12, 12, 12, 0.22);
    backdrop-filter: blur(2px);
    cursor: zoom-out;
}

.image-modal__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.image-modal__frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 1600px);
    max-height: 100%;
    border: 0;
    border-radius: 4px;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    cursor: default;
}

.image-modal__close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 21;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(232, 232, 232, 0.82);
    cursor: pointer;
}

.image-modal__close:hover,
.image-modal__close:focus-visible {
    color: #fff;
}

.image-modal__close:focus-visible {
    outline: 0;
}

.image-modal__close svg {
    width: 18px;
    height: 18px;
}

.image-modal__close:hover svg,
.image-modal__close:focus-visible svg {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.work {
    margin-bottom: 40px;
}

h2 {
    font-size: 16px;
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 12px;
}

.work-list {
    list-style: disc;
    margin-left: 1.2em;
    color: #b4b4b4;
}

.work-list li {
    margin-bottom: 6px;
    padding-left: 0.15em;
}

footer {
    margin-top: 48px;
    font-size: 16px;
    color: #b4b4b4;
}

footer p {
    line-height: 1.7;
}

a {
    color: #b4b4b4;
    text-decoration: underline;
    text-decoration-color: #333;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

a:hover {
    color: #e8e8e8;
    text-decoration-color: #666;
}

@media print {
    body {
        background: #fff;
        color: #111;
        padding: 24px;
    }

    h1, h2 {
        color: #000;
    }

    .bio, .repo-link, footer, .work-list {
        color: #333;
    }

    a {
        color: #000;
    }

    .skip-link {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding: 48px 20px;
    }

    h1 {
        font-size: 24px;
    }

    header {
        margin-bottom: 32px;
    }

    footer {
        margin-top: 40px;
    }

    .image-modal {
        padding: 14px 10px;
    }

    .image-modal__close {
        top: 12px;
        right: 12px;
        width: 30px;
        height: 30px;
    }
}
