:root {
    --bg: #FAF8F5;
    --bg-warm: #F5F0EA;
    --text: #2A2520;
    --text-light: #8C8279;
    --accent: #5A7B6A;
    --accent-soft: rgba(90, 123, 106, 0.12);
    --border: #E2DCD5;
}

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

html {
    font-size: 18px;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Subtle warm grain texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    z-index: 999;
}

/* Warm radial glow behind content */
body::after {
    content: '';
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

/* Entrance animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes growWidth {
    from { width: 0; }
    to { width: 40px; }
}

/* Hero */
.hero {
    text-align: center;
    max-width: 680px;
}

/* Wordmark with flanking rules */
.wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease both;
}

.wordmark-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
}

.wordmark-rule {
    display: block;
    height: 1px;
    width: 40px;
    background-color: var(--border);
    animation: growWidth 0.6s ease 0.3s both;
}

/* Heading */
h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 1.5rem;
}

h1 .line {
    display: block;
    animation: fadeUp 0.7s ease both;
}

h1 .line:nth-child(1) {
    animation-delay: 0.15s;
}

h1 .line:nth-child(2) {
    animation-delay: 0.35s;
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    animation: fadeUp 0.7s ease 0.55s both;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    animation: fadeIn 0.6s ease 0.8s both;
}

.divider-line {
    width: 40px;
    height: 1px;
    background-color: var(--border);
}

/* Philosophy */
.philosophy {
    max-width: 500px;
    text-align: center;
    animation: fadeUp 0.7s ease 0.9s both;
}

.philosophy p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.9;
    letter-spacing: 0.01em;
}

/* Footer */
footer {
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease 1.1s both;
}

.footer-content {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.footer-content a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.footer-content a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    h1 {
        font-size: 2.4rem;
    }

    main {
        padding: 4rem 1.5rem 3rem;
    }

    .wordmark-rule {
        width: 24px;
    }

    @keyframes growWidth {
        from { width: 0; }
        to { width: 24px; }
    }

    .philosophy p br {
        display: none;
    }
}
