
/* Bailey Urick — Mobile-first homepage */

:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    background: #0e1014;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #0e1014;
}

.app-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 760px;
}

.photo-tile {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: #222630;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.photo-tile:active {
    cursor: grabbing;
}

.photo-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* SortableJS animations */

.photo-tile.sortable-ghost {
    opacity: 0.3;
}

.photo-tile.sortable-chosen {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: -2px;
}

.photo-tile.sortable-drag {
    opacity: 0.95;
}

/* Desktop adjustments */

@media (min-width: 768px) {
    .app-shell {
        padding: 32px;
    }

    .photo-grid {
        gap: 18px;
    }

    .photo-tile {
        border-radius: 20px;
        transition: box-shadow 0.2s ease;
    }

    .photo-tile:hover {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .photo-tile {
        transition: none;
    }
}

/* Highlight the picture that will be swapped */

.photo-tile.sortable-swap-highlight {
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}
