:root {
    /* Palette: Stacked Paper & Ink */
    --bg-surface: #e8e6df;
    /* The desk surface */
    --paper-main: #f8f7f2;
    /* The main manuscript sheet (Cream) */
    --paper-card: #ffffff;
    /* The top card (Brighter white) */

    --ink-primary: #2a2725;
    /* Deep charcoal */
    --ink-secondary: #595550;
    /* Softer grey */

    --accent-color: #3b4d40;
    /* Forest Green for branding */
    --button-color: #b3543d;
    /* Spiced Clay/Rust for action */

    /* Shadows for stacking depth */
    /* Shadow for the main sheet resting on the desk */
    --shadow-deep:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(50, 45, 40, 0.1);

    /* Shadow for elements resting on the main sheet */
    --shadow-shallow:
        0 1px 2px rgba(0, 0, 0, 0.08),
        0 3px 6px rgba(0, 0, 0, 0.05);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Proza Libre', sans-serif;
    color: var(--ink-primary);
    line-height: 1.7;
    background-color: var(--bg-surface);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    /* Subtle overall grain on the background */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Reusable Paper Texture Class for container and card */
.paper-texture {
    position: relative;
}

.paper-texture::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Heavier fiber texture for the paper elements */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperRoughness'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.06' numOctaves='4' result='noise'/%3E%3CfeDiffuseLighting in='noise' lighting-color='white' surfaceScale='1.5'%3E%3CfeDistantLight azimuth='45' elevation='50'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperRoughness)' opacity='0.15' style='mix-blend-mode: multiply;'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

/* Ensure content sits above texture */
.paper-texture>* {
    position: relative;
    z-index: 1;
}


/* Layer 1: Main Manuscript Container */
.container {
    background-color: var(--paper-main);
    max-width: 720px;
    width: 100%;
    padding: 70px 60px;
    box-shadow: var(--shadow-deep);
    border-radius: 2px;
    /* Slight softening of corners */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle definition edge */
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    text-align: center;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
    color: var(--ink-primary);
    font-weight: 700;
}

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

.logo span {
    color: var(--accent-color);
    font-style: italic;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.1;
    text-align: center;
    margin: 0 0 1.5rem 0;
    color: var(--ink-primary);
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    margin: 2rem 0 1rem 0;
    color: var(--ink-primary);
}

.sub-headline {
    text-align: center;
    font-size: 1.15rem;
    color: var(--ink-secondary);
    font-weight: 400;
    max-width: 540px;
    margin: 0 auto 3.5rem auto;
}

p {
    margin-bottom: 1.5rem;
}

/* --- Layer 2: The CTA Card (Stacked on top) --- */
.cta-card {
    background-color: var(--paper-card);
    padding: 35px;
    text-align: center;
    margin-bottom: 4rem;
    /* Shallow shadow makes it look like it's resting on the main paper */
    box-shadow: var(--shadow-shallow);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--button-color);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 460px;
    margin: 0 auto;
}

@media (min-width: 550px) {
    .signup-form {
        flex-direction: row;
        gap: 0.75rem;
    }
}

.email-input {
    flex-grow: 1;
    padding: 14px 18px;
    font-family: 'Proza Libre', sans-serif;
    font-size: 1rem;
    background: #fff;
    border: 1px solid #d0cdc5;
    color: var(--ink-primary);
    border-radius: 2px;
    transition: all 0.2s;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Slight inner depth */
}

.email-input:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px rgba(179, 84, 61, 0.1);
}

.submit-button {
    background-color: var(--button-color);
    color: #fff;
    font-family: 'Proza Libre', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 24px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.03em;
    /* Subtle shadow for the button itself */
    box-shadow: 0 2px 4px rgba(179, 84, 61, 0.3);
}

.submit-button:hover {
    background-color: #9c4530;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(179, 84, 61, 0.3);
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--ink-secondary);
    margin-top: 1.25rem;
    opacity: 0.8;
}

/* --- FEATURES --- */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 4rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    color: var(--accent-color);
    margin-top: 5px;
    /* A little circle background to make them pop off the paper */
    background-color: rgba(59, 77, 64, 0.08);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--ink-primary);
}

.feature-text p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--ink-secondary);
}

/* --- FOOTER LINKS --- */
.legal-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
}

.legal-footer a {
    color: var(--ink-secondary);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.2s;
    opacity: 0.7;
    font-family: 'Proza Libre', sans-serif;
    font-weight: 500;
}

.legal-footer a:hover {
    color: var(--button-color);
    opacity: 1;
    text-decoration: underline;
}

.content-section {
    text-align: left;
    max-width: 620px;
    margin: 0 auto;
}
