/* Miluk.org Stylesheet */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --gold: #C9952A;
    --gold-light: #e8d4a8;
    --white: #ffffff;
    --gray: #888;
    --font-serif: 'Charis SIL', Georgia, 'Times New Roman', serif;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-serif);
    line-height: 1.7;
    font-size: 18px;
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.sticky-nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--gold);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.hero .carousel {
    width: 100%;
    max-width: 900px;
    height: 60vh;
    position: relative;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Carousel Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: var(--gold);
}

.hero-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-text {
    text-align: center;
}

.hero-greeting {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray);
}

.scroll-cta {
    position: absolute;
    bottom: 3rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 70px;
}

.section .carousel {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 70vh;
    position: relative;
}

.section-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.section-header {
    margin-bottom: 3rem;
}

.header-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-content.centered {
    text-align: center;
}

.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.section h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 2rem 0 1rem;
    color: var(--gold);
}

.section p {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.section p.emphasis {
    font-style: italic;
    color: var(--gold-light);
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.section p.note {
    font-size: 0.95rem;
    color: var(--gray);
    font-style: italic;
}

/* Section Variants */
.section-dark {
    background-color: #111;
}

.section-gold {
    background: linear-gradient(135deg, #1a1408 0%, #0a0a0a 100%);
    border-top: 1px solid rgba(201, 149, 42, 0.2);
    border-bottom: 1px solid rgba(201, 149, 42, 0.2);
}

/* Hidden Section (About) */
.hidden-section {
    display: none;
}

/* Givebutter Widget */
givebutter-widget {
    --givebutter-background: #0a0a0a;
    display: block;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons & Links */
.cta-button {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem 2rem;
    background-color: var(--gold);
    color: var(--black);
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1.5rem;
    transition: background-color 0.2s, transform 0.2s;
}

.cta-button:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
}

.cta-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

.cta-link:hover {
    color: var(--gold-light);
}

/* Bio List */
.bio-list {
    list-style: none;
    margin: 1.5rem 0;
}

.bio-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.bio-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.bio-sublist {
    list-style: none;
    margin: 0.25rem 0 0 1rem;
}

.bio-sublist li {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
}

.bio-sublist li::before {
    content: '–';
    font-style: normal;
}

/* About Section */
.about-header {
    margin-bottom: 1rem;
}

.about-credit {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.about-credit a {
    color: var(--gold);
    text-decoration: none;
}

.about-credit a:hover {
    color: var(--gold-light);
}

.about-image {
    display: block;
    max-height: 60px;
    width: auto;
    margin: 0 auto 0.5rem auto;
    object-fit: contain;
    object-position: center;
}

.wordlist-image {
    display: block;
    max-height: 120px;
    width: auto;
    margin: 0 auto 1rem auto;
    object-fit: contain;
}

/* Audio Embed */
.audio-embed {
    margin: 1.5rem 0;
    border-radius: 6px;
    overflow: hidden;
}

.audio-embed iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-links a.closing-link {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
    opacity: 1;
}

.footer-links a.closing-link:hover {
    color: var(--gold-light);
}

.footer-links .divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 1rem;
}

.copyright {
    font-size: 0.85rem;
    color: var(--gray);
}

.copyright-link {
    color: var(--gold);
    font-style: italic;
    text-decoration: none;
    transition: color 0.2s;
}

.copyright-link:hover {
    color: var(--gold-light);
}

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

    .sticky-nav {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-greeting {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section h3 {
        font-size: 1.25rem;
    }

    .footer-links .divider {
        display: none;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }
}
