/* style.css */

/* Reset & Core Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    /* FIX: Prevents layout snapping/jumping when mobile address bars hide/show */
    height: 100dvh; 
    overflow: hidden;
    background-color: #fcfbfa; /* Soft, warm alabaster white */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2e2d2c; /* Soft charcoal instead of harsh black */
    -webkit-font-smoothing: antialiased;
}

/* Background Canvas */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh; /* FIX: Matches dynamic viewport height */
    z-index: 1;
    pointer-events: none; /* Allows clicks to pass through to the form fields */
}

/* Content Container Layout */
.content-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 24px; /* Slightly increased padding to protect edges on narrow screens */
    text-align: center;
}

/* Typography & Hero */
.brand-subtitle {
    /* FIX: Scales elegantly using fluid typography */
    font-size: clamp(0.75rem, 2vw, 0.85rem); 
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #706e6b;
    margin-bottom: clamp(1.5rem, 4vh, 2rem);
    animation: fadeIn 2s ease-out;
}

a{
	line-height: 8.5;
}

h1 {
    font-family: "Didot", "Bodoni MT", "Cinzel", serif; /* Elegant serif for rituals */
    font-weight: 300;
    /* FIX: Lowers base mobile font size so text doesn't split into awkward single words */
    font-size: clamp(1.75rem, 6vw, 3.2rem); 
    line-height: 1.25;
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    letter-spacing: -0.01em;
    animation: fadeIn 2.5s ease-out;
}

.philosophy {
    max-width: 500px;
    /* FIX: Better readability scale for small displays */
    font-size: clamp(0.95rem, 2.5vw, 1.1rem); 
    line-height: 1.65;
    color: #54524f;
    margin-bottom: clamp(2rem, 5vh, 3rem);
    font-weight: 300;
    animation: fadeIn 3s ease-out;
}

/* Interactive Form Elements */
.signup-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
    animation: fadeIn 3.5s ease-out;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 0.9rem 1.2rem; /* Slighly larger tap target */
    border: 1px solid #d1cfcc;
    background: rgba(252, 251, 250, 0.7);
    backdrop-filter: blur(4px); /* Beautiful frosted glass blend */
    border-radius: 4px; /* Softened edges slightly */
    /* FIX: Critical 16px (1rem) minimum size stops iOS/Android from forcing an ugly page auto-zoom */
    font-size: 1rem; 
    color: #2e2d2c;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none; /* Removes default iOS input inner shadows */
}

.signup-form input[type="email"]:focus {
    border-color: #8c8984;
    background: rgba(252, 251, 250, 0.95);
}

.signup-form button {
    padding: 0.9rem 1.5rem;
    background-color: #3d3b39;
    color: #fcfbfa;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* FIX: Removes the ugly blue flash when tapped on mobile */
}

.signup-form button:hover,
.signup-form button:active {
    background-color: #252423;
}

.form-note {
    font-size: 0.8rem;
    color: #8c8984;
    font-style: italic;
    animation: fadeIn 3.5s ease-out;
}

/* Simple Fade-In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Upgraded Responsive Media Query */
@media (max-width: 600px) {
    .signup-form {
        flex-direction: column;
        gap: 0.6rem; /* Comfortable separation when stacked vertical */
    }
    .signup-form button {
        width: 100%;
        padding: 0.9rem 1.2rem; /* Creates an easier thumb target */
    }
    .content-container {
        /* Gives subtle breathing room at the bottom for persistent mobile home indicator bars */
        padding-bottom: 5vh; 
    }
}