/* ========== Natural Patina Furniture — Shared Styles ========== */

/* ===== VARIABLES ===== */
:root {
    --walnut-deep: #3B2A1A;
    --walnut-dark: #4A3728;
    --walnut-mid: #5C4A38;
    --walnut-light: #6E5C48;
    --walnut-highlight: #806A55;
    --gold: #E8D48E;
    --gold-light: #F2E4AA;
    --gold-dim: #D4C07A;
    --gold-pale: #F5ECD0;
    --cream: #FAF4EA;
    --scroll-speed-1: 120s;
    --scroll-speed-2: 150s;
    --scroll-speed-3: 100s;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    background-color: var(--walnut-deep);
    color: var(--gold);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== SCROLLING PHOTO GRID BACKGROUND ===== */
.photo-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    gap: 6px;
    padding: 6px;
    overflow: hidden;
}

.photo-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    position: relative;
}

.photo-scroll {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-col:nth-child(1) .photo-scroll {
    animation: scrollUp var(--scroll-speed-1) linear infinite;
}

.photo-col:nth-child(2) .photo-scroll {
    animation: scrollDown var(--scroll-speed-2) linear infinite;
}

.photo-col:nth-child(3) .photo-scroll {
    animation: scrollUp var(--scroll-speed-3) linear infinite;
}

.photo-scroll img {
    width: 100%;
    border-radius: 4px;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    filter: brightness(1.1) saturate(1.05) blur(2px);
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.photo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(
        ellipse at center,
        rgba(42, 30, 21, 0.7) 0%,
        rgba(42, 30, 21, 0.55) 60%,
        rgba(42, 30, 21, 0.4) 100%
    );
    pointer-events: none;
}

/* ===== LAYOUT ===== */
.page-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2.5rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== NAVIGATION ===== */
.back-link {
    align-self: flex-start;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gold-dim);
    text-decoration: none;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--gold-light);
}

/* ===== PAGE TITLE & DIVIDER ===== */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    animation: fadeDown 0.8s ease-out both;
}

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 60%;
    margin: 0.25rem 0 1.5rem;
    animation: fadeIn 1s ease-out both;
    animation-delay: 0.2s;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.divider-ornament {
    color: var(--gold-dim);
    font-size: 0.7rem;
}

/* ===== EMAIL SIGNUP ===== */
.signup-panel {
    width: 100%;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(212, 185, 107, 0.3);
    border-radius: 8px;
    background: rgba(42, 30, 21, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-top: 1rem;
    text-align: center;
    animation: fadeUp 0.8s ease-out both;
}

.signup-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.signup-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--gold-dim);
    margin-bottom: 1rem;
}

.signup-form {
    display: flex;
    gap: 0.5rem;
}

.signup-input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(212, 185, 107, 0.3);
    border-radius: 4px;
    background: rgba(59, 42, 26, 0.5);
    color: var(--gold-pale);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.signup-input::placeholder {
    color: rgba(212, 192, 122, 0.4);
}

.signup-input:focus {
    border-color: var(--gold);
}

.signup-btn {
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--gold-dim);
    border-radius: 4px;
    background: rgba(212, 185, 107, 0.15);
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.signup-btn:hover {
    background: rgba(212, 185, 107, 0.3);
    border-color: var(--gold-light);
}

.signup-success {
    display: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--gold-light);
    padding: 0.5rem 0;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 2.5rem;
    text-align: center;
    animation: fadeIn 1s ease-out both;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: var(--gold-dim);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
    .container {
        padding: 3.5rem 2rem 4rem;
    }
    .page-title {
        font-size: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .photo-scroll {
        animation-play-state: paused !important;
    }
}
