/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
    padding: 1vw;
    transition: background-color 1s ease;
}

/* Dots Container */
.dots-container {
    position: fixed;
    top: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
}

.dots {
    opacity: 1;
    width: 100%;
    height: auto;
    max-width: 200px;
}

.dots circle {
    fill: black;
    transition: fill 1s ease;
}

/* Main Content */
.container {
    max-width: 95vw;
    margin: 0 auto;
    padding-top: 4rem;
}

/* Header */
header {
    text-align: center;
    margin: 4rem 0 4rem;
}

.tagline {
    font-family: "receipt-narrow", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    color: #000000;
    text-transform: lowercase;
    white-space: nowrap;
}

.site-title {
    font-size: 6rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 1s ease;
}

.line-break {
    display: block;
    height: 1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    --scroll-opacity-above: 1;
    --scroll-opacity-inside: 1;
    --scroll-opacity-below: 0;
    opacity: var(--scroll-opacity, 1);
    
    --scroll-transition-above: 0s transform ease-in-out, 0s opacity ease-in-out;
    --scroll-transition-inside: 1000ms transform ease-in-out, 1000ms opacity ease-in-out;
    --scroll-transition-below: 0s transform ease-in-out, 0s opacity ease-in-out;
    
    --scroll-translate-below: translateY(40px);
    --scroll-translate-inside: translateY(0px);
    --scroll-translate-above: translateY(0px);
    
    --scroll-translate: var(--scroll-translate-inside);
    --scroll-transition: var(--scroll-transition-inside);
    --scroll-opacity: var(--scroll-opacity-inside);
    
    transform: var(--scroll-translate);
    transition: var(--scroll-transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .dots-container {
        position: absolute;
        top: 1rem;
        padding: 0 0.5rem;
    }
    
    .dots {
        max-width: 150px;
    }
    
    .container {
        max-width: 100%;
        padding: 0.5rem;
        margin-top: 2rem;
    }
    
    .information-content {
        margin: 3rem auto 2rem;
        padding: 0 1rem;
    }
    
    .info-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .info-signature {
        margin-top: 1.5rem;
    }
    
    .bottom-dots-container {
        margin-top: 1rem;
    }
    
    .bottom-dots {
        width: 200px;
        height: 40px;
    }
    
    .gallery-grid {
        gap: 1vw;
    }
    
    .gallery-item {
        aspect-ratio: unset;
    }
    
    .gallery-item img {
        width: 100%;
        height: auto;
    }
    
    .site-title {
        font-size: 3rem;
        margin: 1rem 0;
    }
    
    .tagline {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    header {
        margin: 2rem 0;
    }
}

/* Add smaller screen adjustments */
@media (max-width: 480px) {
    .dots-container {
        padding: 0 0.5rem;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .information-content {
        padding: 0 1rem;
    }
    
    .bottom-dots {
        width: 250px;
    }
}

/* Color Picker */
.color-picker-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    margin: 2rem 0;
}

#colorPicker {
    width: 80px;
    height: 40px;
    padding: 4px;
    border: 1px solid #e0e0e0;
    background: white;
    cursor: pointer;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

#colorPicker::-webkit-color-swatch-wrapper {
    padding: 0;
    border: 1px solid #000;
}

#colorPicker::-webkit-color-swatch {
    border: none;
    border-radius: 0;
}

#colorPicker::-moz-color-swatch {
    border: 1px solid #000;
    border-radius: 0;
}

.bottom-dots-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.bottom-dots {
    width: 300px;
    height: auto;
}

.dot-row {
    opacity: 0.8;
}

.information-content {
    max-width: 1200px;
    margin: 8rem auto 2rem;
    padding: 0 2rem;
    font-family: "receipt-narrow", sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.information-content p {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .information-content {
        font-size: 1rem;
        padding: 0 1rem;
        margin: 2rem auto;
    }
}

.info-title {
    font-family: "receipt-narrow", sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.information-content {
    max-width: 1200px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
    text-align: left;
}

.info-text {
    font-family: "receipt-narrow", sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    position: relative;
}

.info-signature {
    font-family: "receipt-narrow", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-top: 3rem;
}

footer {
    margin-top: auto;
    width: 100%;
}

.info-text em {
    font-style: italic;
    filter: drop-shadow(-0.5rem -0.5rem 0.2rem rgba(85, 124, 25, 0.6));
    will-change: filter;
}

.shadow-text {
    position: absolute;
    display: inline-block;
    color: rgba(144, 238, 144, 0.3);
    filter: blur(4px);
    left: -2px;
    top: -2px;
    z-index: 1;
}

.fade-text {
    color: #888888;
}
