/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    background: #FDF6EC;
    color: #2B2520;
    line-height: 1.6;
    overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

/* ── Password Gate ───────────────────────────────── */
#gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #FDF6EC;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}
#gate.gate-hidden {
    opacity: 0;
    pointer-events: none;
}

.gate-inner {
    text-align: center;
}

.gate-icon {
    font-size: 2rem;
    color: #C4956A;
    margin-bottom: 2rem;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.1); }
}

.gate-form {
    display: flex;
    gap: 0;
    border: 1.5px solid #C4956A;
    border-radius: 100px;
    overflow: hidden;
    background: #fff;
}

.gate-form input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    width: 200px;
    color: #2B2520;
}
.gate-form input::placeholder {
    color: #B5A899;
}

.gate-form button {
    border: none;
    background: #C4956A;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}
.gate-form button:hover {
    background: #A87A52;
}

.gate-error {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #C47A6A;
    opacity: 0;
    transition: opacity 0.3s;
}
.gate-error.visible {
    opacity: 1;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.shake { animation: shake 0.4s ease; }

/* ── Content ─────────────────────────────────────── */
#content {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}
#content.content-visible {
    display: block;
    opacity: 1;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 8vw, 6rem);
    line-height: 1.15;
    text-align: center;
    color: #2B2520;
    animation: fadeUp 1s ease 0.2s both;
}

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

/* ── Love Section ────────────────────────────────── */
.section-love {
    padding: 6rem 2rem;
    text-align: center;
}
.section-love p {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #C4956A;
}

/* ── Intro Section ───────────────────────────────── */
.section-intro {
    padding: 4rem 2rem 6rem;
    text-align: center;
}
.section-intro p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    margin-bottom: 1.5rem;
}
.arrow-down {
    font-size: 1.5rem;
    color: #C4956A;
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

/* ── Presents ────────────────────────────────────── */
.present {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.present-body {
    margin-bottom: 2.5rem;
}

.present-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #C4956A;
    margin-bottom: 0.75rem;
}

.present-text {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.7;
    max-width: 600px;
}
.present-text strong {
    color: #A87A52;
}

.present-media img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(43, 37, 32, 0.1);
}

.present-media-video video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(43, 37, 32, 0.1);
    background: #2B2520;
}

/* ── Dividers between presents ───────────────────── */
.present + .present {
    border-top: 1px solid #E8DDD0;
    padding-top: 5rem;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 6rem 2rem 4rem;
    font-size: 2rem;
}

/* ── Scroll Animations ───────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
    .present { padding: 3rem 1.25rem; }
    .present + .present { padding-top: 3.5rem; }
    .section-love { padding: 4rem 1.25rem; }
    .section-intro { padding: 3rem 1.25rem 4rem; }
    .gate-form input { width: 160px; }
}
