/* ========================================
   lune.dev - Styles
   Victorian Ornamental Monochrome
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F5F5F5;
    color: #1A1A1A;
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(16px, 1.1vw, 19px);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Arvo', 'Rockwell', serif;
    color: #1A1A1A;
}

h2.section-heading {
    font-weight: 400;
    font-size: clamp(28px, 4vw, 56px);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

h3 {
    font-family: 'Arvo', 'Rockwell', serif;
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 12px;
}

h4 {
    font-family: 'Arvo', 'Rockwell', serif;
    font-weight: 400;
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 8px;
}

.body-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(16px, 1.1vw, 19px);
    line-height: 1.85;
    color: #1A1A1A;
    margin-bottom: 20px;
}

.body-text:last-child {
    margin-bottom: 0;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #F5F5F5;
    padding: 40px 24px;
    overflow: hidden;
}

#logotype {
    font-family: 'Arvo', 'Rockwell', serif;
    font-weight: 700;
    font-size: clamp(48px, 8vw, 120px);
    letter-spacing: 0.08em;
    color: #1A1A1A;
    opacity: 0;
    transition: opacity 0.8s ease;
    text-transform: lowercase;
    position: relative;
    z-index: 2;
}

#logotype.visible {
    opacity: 1;
}

#hero-subtitle {
    font-family: 'Bodoni Moda', 'Georgia', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(14px, 1.5vw, 20px);
    color: #808080;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
    position: relative;
    z-index: 2;
}

#hero-subtitle.visible {
    opacity: 1;
}

/* --- Ornamental Brackets --- */
.ornament-bracket {
    position: absolute;
    top: 50%;
    transform: translateY(-65%);
    z-index: 1;
    opacity: 0;
}

.ornament-bracket-left {
    left: calc(50% - clamp(140px, 20vw, 300px));
}

.ornament-bracket-right {
    right: calc(50% - clamp(140px, 20vw, 300px));
}

.ornament-bracket path,
.ornament-bracket circle {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

.ornament-bracket.animate {
    opacity: 1;
}

.ornament-bracket.animate path,
.ornament-bracket.animate circle {
    animation: drawBracket 1s ease-out forwards;
}

@keyframes drawBracket {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Moon Illustration --- */
#moon-container {
    margin-top: 40px;
    position: relative;
    z-index: 2;
    width: 300px;
    height: 300px;
    -webkit-mask-image: radial-gradient(circle, black 0%, transparent 0%);
    mask-image: radial-gradient(circle, black 0%, transparent 0%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: -webkit-mask-image 2s ease-out, mask-image 2s ease-out;
}

#moon-container.revealed {
    -webkit-mask-image: radial-gradient(circle, black 100%, transparent 100%);
    mask-image: radial-gradient(circle, black 100%, transparent 100%);
}

#moon-svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- Bubbles --- */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(232,232,232,0.3) 40%, rgba(192,192,192,0.15) 70%, transparent);
    border: 1px solid rgba(192,192,192,0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.bubble.float {
    opacity: 1;
    animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble-1 {
    width: 24px;
    height: 24px;
    top: 25%;
    left: 12%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 16px;
    height: 16px;
    top: 35%;
    right: 15%;
    animation-delay: 0.8s;
}

.bubble-3 {
    width: 20px;
    height: 20px;
    bottom: 30%;
    left: 18%;
    animation-delay: 1.6s;
}

.bubble-4 {
    width: 28px;
    height: 28px;
    bottom: 25%;
    right: 10%;
    animation-delay: 0.4s;
}

.bubble-5 {
    width: 14px;
    height: 14px;
    top: 20%;
    right: 25%;
    animation-delay: 2s;
}

.bubble-6 {
    width: 18px;
    height: 18px;
    bottom: 35%;
    left: 8%;
    animation-delay: 1.2s;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.bubble.float.bubble-2 {
    animation: bubbleFloat 4s ease-in-out 0.8s infinite;
}
.bubble.float.bubble-3 {
    animation: bubbleFloat 4s ease-in-out 1.6s infinite;
}
.bubble.float.bubble-4 {
    animation: bubbleFloat 4s ease-in-out 0.4s infinite;
}
.bubble.float.bubble-5 {
    animation: bubbleFloat 4s ease-in-out 2s infinite;
}
.bubble.float.bubble-6 {
    animation: bubbleFloat 4s ease-in-out 1.2s infinite;
}

/* --- Main Content --- */
#content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
}

/* --- Ornament Dividers --- */
.ornament-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.ornament-divider svg {
    max-width: 100%;
    height: auto;
}

.ornament-final {
    margin-bottom: 40px;
}

/* --- Fade Reveal System --- */
.reveal-target {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-target.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Leather Panels --- */
.leather-panel {
    background-color: #2A2A2A;
    position: relative;
    padding: 48px 40px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(192,192,192,0.15);
    margin: 20px 0;
    overflow: hidden;
}

.leather-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.pull-quote {
    font-family: 'Bodoni Moda', 'Georgia', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 16px;
}

.pull-quote-attribution {
    display: block;
    text-align: center;
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(14px, 1vw, 16px);
    color: #808080;
}

/* --- Principles List --- */
.principles-list {
    margin-top: 40px;
}

.principle {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid #E8E8E8;
}

.principle:last-child {
    border-bottom: none;
}

.principle-symbol {
    display: block;
    font-size: 36px;
    color: #C0C0C0;
    margin-bottom: 16px;
    line-height: 1;
}

.principle-title {
    font-family: 'Arvo', 'Rockwell', serif;
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 12px;
    color: #1A1A1A;
}

.principle .body-text {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Offering Items --- */
.offering-item {
    padding: 32px 0;
    border-bottom: 1px solid #E8E8E8;
}

.offering-item:last-child {
    border-bottom: none;
}

.offering-title {
    font-family: 'Arvo', 'Rockwell', serif;
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 12px;
    color: #1A1A1A;
}

/* --- Sky Items --- */
.sky-items {
    margin-top: 32px;
}

.sky-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid #E8E8E8;
}

.sky-item:last-child {
    border-bottom: none;
}

.sky-item-phase {
    font-size: 28px;
    color: #808080;
    flex-shrink: 0;
    line-height: 1.4;
    width: 36px;
    text-align: center;
}

.sky-item-title {
    font-family: 'Arvo', 'Rockwell', serif;
    font-weight: 400;
    font-size: clamp(18px, 2vw, 24px);
    color: #1A1A1A;
    margin-bottom: 8px;
}

/* --- Bubble Clusters --- */
.bubble-cluster {
    position: relative;
    height: 60px;
    margin: 20px auto;
    max-width: 200px;
}

.bubble-cluster .bubble {
    position: absolute;
    opacity: 1;
}

.bubble-cluster-1 {
    width: 22px;
    height: 22px;
    top: 10px;
    left: 20%;
    animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble-cluster-2 {
    width: 16px;
    height: 16px;
    top: 25px;
    left: 55%;
    animation: bubbleFloat 4s ease-in-out 1.2s infinite;
}

.bubble-cluster-3 {
    width: 12px;
    height: 12px;
    top: 5px;
    left: 80%;
    animation: bubbleFloat 4s ease-in-out 0.6s infinite;
}

.bubble-cluster-4 {
    width: 18px;
    height: 18px;
    top: 15px;
    left: 30%;
    animation: bubbleFloat 4s ease-in-out 0.3s infinite;
}

.bubble-cluster-5 {
    width: 14px;
    height: 14px;
    top: 8px;
    left: 65%;
    animation: bubbleFloat 4s ease-in-out 1.5s infinite;
}

/* --- Contact Links --- */
.contact-links {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
}

.contact-link {
    font-family: 'Arvo', 'Rockwell', serif;
    font-weight: 400;
    font-size: clamp(16px, 1.2vw, 18px);
    color: #1A1A1A;
    text-decoration: none;
    border-bottom: 1px solid #C0C0C0;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-link:hover {
    color: #808080;
    border-color: #808080;
}

.contact-separator {
    margin: 0 16px;
    color: #C0C0C0;
    font-size: 18px;
}

/* --- Footer --- */
#footer {
    text-align: center;
    padding: 60px 24px 40px;
    border-top: 1px solid #E8E8E8;
    margin-top: 40px;
}

.footer-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(13px, 1vw, 15px);
    color: #808080;
    margin-bottom: 16px;
}

.footer-moon-symbol {
    font-size: 24px;
    color: #C0C0C0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .ornament-bracket-left {
        left: calc(50% - 100px);
    }

    .ornament-bracket-right {
        right: calc(50% - 100px);
    }

    .ornament-bracket {
        width: 50px;
        height: 80px;
    }

    #moon-container {
        width: 220px;
        height: 220px;
    }

    .leather-panel {
        padding: 32px 24px;
    }

    .content-section {
        padding: 60px 0;
    }

    .sky-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .bubble-1, .bubble-3, .bubble-6 {
        left: 5%;
    }

    .bubble-2, .bubble-4, .bubble-5 {
        right: 5%;
    }
}

@media (max-width: 480px) {
    #content {
        padding: 0 16px;
    }

    .ornament-divider svg {
        width: 280px;
    }

    .contact-separator {
        margin: 0 10px;
    }
}
