/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Noto Serif SC', 'PingFang SC', serif;
    background: #fafaf7;
    color: #2c2a28;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Page Layout ===== */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Top Bar ===== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: #2c2a28;
    user-select: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.6;
}

.tabs {
    display: flex;
    gap: 0.5rem;
}

.tab {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: #6b6864;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    letter-spacing: 0.15em;
    border-radius: 20px;
    transition: all 0.25s ease;
    position: relative;
}

.tab:hover {
    color: #2c2a28;
    background: rgba(0, 0, 0, 0.03);
}

.tab.active {
    color: #fff;
    background: #2c2a28;
}

/* ===== Stage ===== */
.stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
    min-height: 60vh;
}

/* ===== Welcome (default) ===== */
.welcome {
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.quote-line {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 300;
    color: #2c2a28;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.quote-sub {
    font-size: 0.9rem;
    color: #a8a39e;
    letter-spacing: 0.2em;
}

/* ===== Gallery ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: zoom-in;
    aspect-ratio: 4 / 5;
    background: #ece8e3;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.photo-card img.loaded {
    opacity: 1;
}

.photo-card:hover img {
    transform: scale(1.05);
}

/* ===== Footer ===== */
.footer {
    padding: 1.5rem 0;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: #b5b0ab;
    letter-spacing: 0.3em;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: rgba(255, 255, 255, 0.75);
    font-size: 2.2rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10000;
    font-family: 'Cormorant Garamond', serif;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
}

.lightbox-close {
    top: 1.5rem;
    right: 2rem;
    font-size: 2.8rem;
    line-height: 1;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.15);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.15);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .page {
        padding: 0 1rem;
    }

    .topbar {
        padding: 1.5rem 0 1rem;
        gap: 0.5rem;
    }

    .brand {
        font-size: 1.8rem;
    }

    .tab {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        letter-spacing: 0.1em;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stage {
        padding: 2rem 0;
    }

    .lightbox-close { top: 1rem; right: 1rem; font-size: 2.2rem; }
    .lightbox-prev { left: 0.5rem; font-size: 1.8rem; }
    .lightbox-next { right: 0.5rem; font-size: 1.8rem; }
}
