/* custom.css — additions on top of the Start Bootstrap "Personal" theme.
   Load AFTER css/styles.css so these rules win. */

/* 16:9 wrapper for YouTube iframes and <video>, keeps them responsive */
.media-16x9 {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.media-16x9 > iframe,
.media-16x9 > video,
.media-16x9 > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* Code screenshots: never overflow their card */
.code-shot {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Tech stack chips */
.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0 0 1rem 0;
    list-style: none;
}
.stack-list li {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #e9ecef;
    color: #212529;
}

/* "Skip to content" link: hidden until focused with the keyboard */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    z-index: 1000;
    padding: 0.5rem 1rem;
    background: #0d6efd;
    color: #fff;
}
.skip-link:focus {
    left: 0.5rem;
}

/* Anchors (#zombies, #run…) land below the sticky navbar, not under it */
section[id] {
    scroll-margin-top: 1.5rem;
}

/* Respect users who turned off animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
