/* ============================================
   THE PRESERVE — Opening Soon
   ============================================ */

:root {
    --color-primary-dark: #2c1215;
    --color-primary: #722F37;
    --color-accent: #C4956A;
    --color-accent-light: #D4A574;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* ============================================
   RESET
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: #fff;
    background-color: var(--color-primary-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, button {
    font-family: var(--font-ui);
    font-size: 1rem;
}

svg {
    flex-shrink: 0;
}

::selection {
    background-color: var(--color-primary);
    color: #fff;
}


/* ============================================
   LANDING PAGE
   ============================================ */

.landing {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.landing-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(44, 18, 21, 0.50) 0%,
        rgba(44, 18, 21, 0.70) 40%,
        rgba(44, 18, 21, 0.85) 100%
    );
}

.landing-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}


/* ============================================
   LOGO
   ============================================ */

.landing-logo {
    margin-bottom: 1rem;
}

.landing-logo img {
    max-height: 60px;
    width: auto;
    margin: 0 auto;
}

.logo-wordmark {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */

.landing-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
}

.landing-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 440px;
}


/* ============================================
   EMAIL FORM
   ============================================ */

.landing-form-wrap {
    width: 100%;
    max-width: 440px;
}

.landing-form.submitted .form-field {
    opacity: 0.4;
    pointer-events: none;
}

.form-field {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-field:focus-within {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.form-field input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    color: #fff;
    background: transparent;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-field input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-field button {
    flex-shrink: 0;
    padding: 14px 24px;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background-color: var(--color-primary);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.form-field button:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-text {
    transition: opacity 0.15s ease;
}

.btn-loading {
    display: none;
}

button.loading .btn-text {
    opacity: 0;
}

button.loading .btn-loading {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-message {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    min-height: 1.2em;
    transition: color 0.2s ease;
}

.form-message:empty {
    display: none;
}

.form-message.success {
    color: var(--color-accent-light);
}

.form-message.error {
    color: #e07070;
}


/* ============================================
   SOCIAL LINKS
   ============================================ */

.landing-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.landing-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.landing-social a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .landing-title {
        font-size: 2.5rem;
    }

    .landing-subtitle {
        font-size: 1rem;
    }

    .landing-content {
        gap: 1.5rem;
        padding: 2rem 1.25rem;
    }

    .form-field {
        flex-direction: column;
    }

    .form-field input[type="email"] {
        padding: 14px 16px;
    }

    .form-field button {
        padding: 14px 16px;
    }
}

@media (max-width: 380px) {
    .landing-title {
        font-size: 2rem;
    }

    .landing-logo img {
        max-height: 48px;
    }
}
