:root {
    --bg-light: hsl(0, 0%, 98%);
    --fg-light: hsl(220, 15%, 15%);
    --bg-dark: hsl(220, 15%, 8%);
    --fg-dark: hsl(220, 10%, 95%);
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

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

html {
    --bg: var(--bg-light);
    --fg: var(--fg-light);
    --bg-opacity: 1;
    --gradient-start: rgba(250, 250, 250, 0.2);
    --gradient-mid: rgba(250, 250, 250, 0.4);
    --gradient-end: rgba(250, 250, 250, 0.8);
}

html.dark {
    --bg: var(--bg-dark);
    --fg: var(--fg-dark);
    --bg-opacity: 0.8;
    --gradient-start: rgba(20, 20, 25, 0.2);
    --gradient-mid: rgba(20, 20, 25, 0.4);
    --gradient-end: rgba(20, 20, 25, 0.8);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.background-image {
    position: absolute;
    inset: 0;
    background-image: url('../attached_assets/stock_images/traditional_watercol_e4f374c8.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--bg-opacity);
}

.background-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
}

.header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 50;
}

.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    position: relative;
}

.theme-toggle:hover {
    opacity: 0.8;
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

html:not(.dark) .sun-icon {
    transform: rotate(0deg);
    opacity: 1;
}

html:not(.dark) .moon-icon {
    transform: rotate(90deg);
    opacity: 0;
}

html.dark .sun-icon {
    transform: rotate(-90deg);
    opacity: 0;
}

html.dark .moon-icon {
    transform: rotate(0deg);
    opacity: 1;
}

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
}

.hero {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg);
    opacity: 0.8;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out 0.2s both;
}

.title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.divider {
    width: 6rem;
    height: 1px;
    background-color: var(--fg);
    opacity: 0.4;
    margin: 0 auto 2rem;
    animation: scaleX 0.5s ease-out 0.5s both;
    transform-origin: center;
}

.description {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    color: var(--fg);
    opacity: 0.7;
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-out 0.6s both;
}

.footer {
    padding: 2rem;
    text-align: center;
}

.copyright {
    font-size: 0.875rem;
    color: var(--fg);
    opacity: 0.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleX {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 0 1rem;
    }
}
