/* okurairi.net - Hand-Drawn Chrome Gallery */
/* Colors: #FAFAFA, #E0E4E8, #7A7E84, #1A1A20, #B8BCC0, #3A3A3A, #C4A850, #8A8E94 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #1A1A20;
    background-color: #E0E4E8;
    overflow-x: hidden;
}

/* Chrome Background */
.chrome-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #E0E4E8;
    z-index: -3;
}

.chrome-bg::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(250, 250, 250, 0.2) 50%, transparent 60%);
    animation: chromeShift 7s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
}

/* Organic Blobs */
.blob {
    position: fixed;
    border-radius: 50% 40% 60% 45%;
    background: #B8BCC0;
    opacity: 0.06;
    pointer-events: none;
    z-index: -1;
}

.blob-1 {
    width: 300px;
    height: 280px;
    top: 10%;
    left: -50px;
}

.blob-2 {
    width: 250px;
    height: 230px;
    top: 40%;
    right: -60px;
}

.blob-3 {
    width: 200px;
    height: 220px;
    bottom: 10%;
    left: 30%;
}

/* Hero */
.hero {
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Roboto Slab', serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: #1A1A20;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #7A7E84;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

.hero-annotation {
    font-family: 'Indie Flower', cursive;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: #8A8E94;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.9s forwards;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 100px;
    position: relative;
    z-index: 1;
}

/* Gallery Card */
.gallery-card {
    background: #FAFAFA;
    border: 1px solid #B8BCC0;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    cursor: default;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: cardAppear 0.5s ease forwards;
}

.gallery-card:nth-child(1) { animation-delay: 0.8s; }
.gallery-card:nth-child(2) { animation-delay: 0.95s; }
.gallery-card:nth-child(3) { animation-delay: 1.1s; }
.gallery-card:nth-child(4) { animation-delay: 1.25s; }
.gallery-card:nth-child(5) { animation-delay: 1.4s; }
.gallery-card:nth-child(6) { animation-delay: 1.55s; }

.gallery-card:hover {
    box-shadow: 0 8px 24px rgba(26, 26, 32, 0.1);
}

/* Chrome Sheen on Cards */
.card-chrome-sheen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, transparent 35%, rgba(196, 168, 80, 0.06) 50%, transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .card-chrome-sheen {
    opacity: 1;
}

/* Card Sketch */
.card-sketch {
    margin-bottom: 16px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sketch-svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* Card Title */
.card-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A1A20;
    margin-bottom: 4px;
}

/* Card Annotation */
.card-annotation {
    font-family: 'Indie Flower', cursive;
    font-size: 0.9rem;
    color: #C4A850;
    margin-bottom: 8px;
}

/* Card Body */
.card-body {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #7A7E84;
    margin-bottom: 12px;
}

/* Card Label */
.card-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #8A8E94;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Keyframes */
@keyframes chromeShift {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 24px 16px 60px;
    }

    .hero {
        padding: 80px 16px 40px;
    }
}
