/* ===================================
   Pure Minimal Aesthetic
   =================================== */

:root {
    --color-bg: #0f0f0f;
    --color-text: #FFFFFF;
    --color-dim: rgba(255, 255, 255, 0.55);
    --color-muted: rgba(255, 255, 255, 0.35);
    --color-ghost: rgba(255, 255, 255, 0.05);

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
    --transition-atmo: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="paper"] {
    --color-bg: #FDFDFD;
    --color-text: #000000;
    --color-dim: rgba(0, 0, 0, 0.65);
    --color-muted: rgba(0, 0, 0, 0.35);
    --color-ghost: rgba(0, 0, 0, 0.05);
}

/* ===================================
   Base
   =================================== */

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

body,
html {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    transition: background-color var(--transition-atmo), color var(--transition-atmo);
    -webkit-font-smoothing: antialiased;
}

/* ===================================
   Layout
   =================================== */

.canvas {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 4rem;
}

.theme-control {
    display: flex;
    align-items: center;
}

.switcher-bar {
    display: flex;
    background: var(--color-ghost);
    padding: 3px;
    border-radius: 14px;
    position: relative;
    border: 1px solid var(--color-ghost);
}

.switcher-highlight {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: var(--color-text);
    border-radius: 11px;
    transition: transform var(--transition-atmo);
    z-index: 0;
}

[data-theme="paper"] .switcher-highlight {
    transform: translateX(100%);
    background: var(--color-text);
}

.switcher-btn {
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 0.4s;
    width: 80px;
}

.switcher-btn.active {
    color: var(--color-bg);
}

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.centered-stack {
    text-align: center;
    max-width: 640px;
    padding: 2rem;
    margin-top: -8rem;
    /* Correct visual balance since header is now present */
}

/* ===================================
   Typography
   =================================== */

.narrative-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.narrative-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-muted);
    letter-spacing: 0.02em;
    margin-bottom: 2.5rem;
}

.narrative-body {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-dim);
}

.narrative-body p {
    margin-bottom: 1.8rem;
}

.narrative-cta {
    margin-top: 0;
}

/* ===================================
   Links
   =================================== */

.welli-link,
.read-link {
    color: var(--color-dim);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.welli-link::after,
.read-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-dim);
}

/* ===================================
   Social Icons
   =================================== */

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-item {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-item:hover {
    color: var(--color-dim);
}

.social-item svg,
.social-item i {
    width: 18px;
    height: 18px;
    stroke-width: 1.2;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
    .centered-stack {
        max-width: 100%;
        padding: 1.5rem;
    }

    .narrative-title {
        font-size: 2.5rem;
    }

    .narrative-body {
        font-size: 1.05rem;
    }
}