/* Homepage */

@import url('globals.css');

html {
    height: 100%;
    background: var(--bg-primary);
    position: relative;
}

/* Background image with fade on a pseudo-element */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('home.webp') center center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    z-index: -2;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    position: relative;
    background: transparent;
}

/* Overlay to reduce opacity */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    opacity: 0.875;
    pointer-events: none;
    z-index: 0;
}

/* Subtle paper texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100%" height="100%" filter="url(%23noise)" /></svg>');
    z-index: 9999;
}

.home-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    position: relative;
    z-index: 1;
}

/* Photo framing corners */
.home-container::before {
    content: '⌜';
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 8rem;
    color: var(--text-tertiary);
    opacity: 0.3;
    pointer-events: none;
    line-height: 1;
    z-index: 10;
}

.home-container::after {
    content: '⌟';
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 8rem;
    color: var(--text-tertiary);
    opacity: 0.3;
    pointer-events: none;
    line-height: 1;
    z-index: 10;
}

/* Grain texture overlay on top of background */
.home-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100%" height="100%" filter="url(%23noise)" /></svg>');
    opacity: 0.06;
    pointer-events: none;
    z-index: 2;
}

.home-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.home-title {
    color: var(--text-primary);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    margin: 0 0 16px 0;
    font-family: Georgia, serif;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.home-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    font-weight: 400;
    margin: 0 0 48px 0;
    font-family: Georgia, serif;
    letter-spacing: 0.01em;
}

.home-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-link {
    color: var(--bg-primary);
    background: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    font-family: Georgia, serif;
    letter-spacing: 0.01em;
}

.home-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(123, 95, 199, 0.4);
}

.home-footer {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    text-align: center;
}

.footer-link {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    font-weight: 400;
}

.footer-link.animated-underline-link:hover {
    color: var(--accent);
}

.footer-spacer {
    color: var(--text-tertiary);
    margin: 0 8px;
    opacity: 0.5;
}

.mountain-link {
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.6;
    transition: all 0.2s ease;
    display: inline-block;
}

.mountain-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    /* Hide corner brackets on mobile */
    .home-container::before,
    .home-container::after {
        display: none;
    }

    .home-container {
        padding: 32px 24px;
    }

    .home-title {
        margin-bottom: 12px;
    }

    .home-subtitle {
        margin-bottom: 40px;
    }

    .home-nav {
        flex-direction: column;
        gap: 16px;
    }

    .home-link {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .home-footer {
        bottom: 24px;
    }
}

@media (max-width: 480px) {
    .home-container {
        padding: 24px 20px;
    }

    .home-footer {
        bottom: 20px;
        font-size: 0.9rem;
    }
}
