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

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: col-resize;
}

/* ── Layers ── */
.layer {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
}

.layer-dark {
    background: #1a1814;
    color: #faf8f5;
    --accent: #c9a96e;
    --gris: #a09a90;
    --gris-clair: #5a554f;
    --fond: #1a1814;
    --texte: #faf8f5;
    z-index: 1;
}

.layer-light {
    background: #faf8f5;
    color: #1a1814;
    --accent: #c9a96e;
    --gris: #6b6560;
    --gris-clair: #b0aba5;
    --fond: #faf8f5;
    --texte: #1a1814;
    z-index: 2;
    clip-path: inset(0 0 0 0);
}

/* ── Content (shared layout) ── */
.layer main {
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
    padding: 15vh 2rem 6rem;
    width: 100%;
}

.layer h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    color: var(--texte);
}

.layer .tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    font-style: italic;
    color: var(--gris);
    margin-bottom: 3.5rem;
}

.layer .bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gris);
    margin-bottom: 4rem;
}

.layer .bio a {
    color: var(--texte);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.layer .separator {
    width: 2rem;
    height: 1px;
    background: var(--gris-clair);
    margin-bottom: 3rem;
}

.layer .newsletter-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gris-clair);
    margin-bottom: 1rem;
}

.layer .newsletter-form {
    display: flex;
    gap: 0;
    max-width: 360px;
}

.layer .newsletter-form input[type="email"] {
    flex: 1;
    border: 1px solid var(--gris-clair);
    border-right: none;
    background: transparent;
    padding: 0.65rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--texte);
    outline: none;
    transition: border-color 0.2s;
}

.layer .newsletter-form input[type="email"]:focus {
    border-color: var(--accent);
}

.layer .newsletter-form input[type="email"]::placeholder {
    color: var(--gris-clair);
}

.layer .newsletter-form button {
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    padding: 0.65rem 1.2rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.layer .newsletter-form button:hover {
    background: var(--accent);
    color: var(--fond);
}

.layer .newsletter-confirm {
    font-size: 0.82rem;
    color: var(--accent);
    margin-top: 0.75rem;
    min-height: 1.2em;
}

.layer footer {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: flex;
    gap: 1.5rem;
}

.layer footer a {
    font-size: 0.75rem;
    color: var(--gris-clair);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.layer footer a:hover {
    color: var(--accent);
}

/* ── Slider ── */
#slider {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent, #c9a96e);
    z-index: 10;
    cursor: col-resize;
    transition: none;
}

#slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #c9a96e;
    background: rgba(26, 24, 20, 0.7);
    backdrop-filter: blur(4px);
}

#slider::after {
    content: '◂ ▸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #c9a96e;
    font-size: 10px;
    letter-spacing: 2px;
    white-space: nowrap;
}
