/* ============================================
   luminescence.dev - Styles
   Victorian-era photography studio aesthetic
   Sepia-nostalgic, f-pattern, marble-classical
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --aged-parchment: #F5ECD8;
    --dark-sepia: #3A3025;
    --warm-sepia: #8B7355;
    --deep-umber: #2A2420;
    --marble-white: #F0ECE6;
    --amber-highlight: #C8A050;
    --grain-overlay: #6B5B4A;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.8;
    color: var(--deep-umber);
    background-color: var(--aged-parchment);
    overflow-x: hidden;
}

/* --- Grain Overlay --- */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* --- Top Navigation Bar --- */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--dark-sepia);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logotype {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--aged-parchment);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.logotype:hover {
    color: var(--amber-highlight);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    font-variant: small-caps;
    color: var(--warm-sepia);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--amber-highlight);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    margin-top: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--dark-sepia) 0%, var(--warm-sepia) 40%, var(--aged-parchment) 100%);
    filter: sepia(80%) brightness(90%) contrast(110%);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-bg.visible {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 0 0 55%;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(36px, 5.5vw, 72px);
    line-height: 1.1;
    color: var(--aged-parchment);
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(42, 36, 32, 0.3);
}

.hero-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.7;
    color: var(--marble-white);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-ornament {
    width: 200px;
}

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

.hero-marble {
    flex: 0 0 40%;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-marble.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Marble Panels --- */
.marble-panel {
    background: linear-gradient(
        145deg,
        var(--marble-white) 0%,
        #E8E2DA 15%,
        var(--marble-white) 25%,
        #DDD7CF 35%,
        var(--marble-white) 45%,
        #E5DFD7 55%,
        var(--marble-white) 65%,
        #E0DAD2 75%,
        var(--marble-white) 85%,
        #E8E2DA 100%
    );
    border: 1px solid rgba(139, 115, 85, 0.25);
    padding: 48px 36px;
    overflow: hidden;
    position: relative;
}

.marble-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(23deg, transparent 30%, rgba(139, 115, 85, 0.06) 32%, transparent 34%),
        linear-gradient(167deg, transparent 50%, rgba(139, 115, 85, 0.04) 52%, transparent 54%),
        linear-gradient(73deg, transparent 65%, rgba(139, 115, 85, 0.05) 67%, transparent 69%),
        linear-gradient(110deg, transparent 20%, rgba(139, 115, 85, 0.03) 22%, transparent 24%);
    pointer-events: none;
}

.marble-inner {
    position: relative;
    z-index: 1;
}

.marble-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.5;
    color: var(--dark-sepia);
    font-style: italic;
    text-align: center;
}

/* --- Marble Breathing Animation --- */
.marble-breathing {
    animation: breathe 8s ease-in-out infinite alternate;
}

@keyframes breathe {
    from { transform: scale(1); }
    to { transform: scale(1.03); }
}

/* --- Section Breaks --- */
.section-break {
    width: 100%;
    height: 80px;
    background-color: var(--aged-parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.break-ornament {
    width: 100%;
    max-width: 800px;
    height: 12px;
}

/* --- F-Pattern Sections --- */
.f-pattern-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: clamp(28px, 4.5vw, 60px);
    color: var(--deep-umber);
    margin-bottom: 48px;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.3);
}

.f-pattern-grid {
    display: grid;
    grid-template-columns: 65% 5% 30%;
    width: 100%;
}

.f-main-column {
    min-width: 0;
}

.f-gutter {
    min-width: 0;
}

.f-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* --- Body Text --- */
.body-text {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.8;
    color: var(--deep-umber);
    margin-bottom: 20px;
}

/* --- Sidebar Marble Panels --- */
.sidebar-marble {
    background: linear-gradient(
        145deg,
        var(--marble-white) 0%,
        #E8E2DA 20%,
        var(--marble-white) 35%,
        #DDD7CF 50%,
        var(--marble-white) 65%,
        #E5DFD7 80%,
        var(--marble-white) 100%
    );
    border: 1px solid rgba(139, 115, 85, 0.2);
    padding: 32px 24px;
    overflow: hidden;
    position: relative;
}

.sidebar-marble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(23deg, transparent 30%, rgba(139, 115, 85, 0.05) 32%, transparent 34%),
        linear-gradient(167deg, transparent 50%, rgba(139, 115, 85, 0.03) 52%, transparent 54%);
    pointer-events: none;
}

.sidebar-marble-inner {
    position: relative;
    z-index: 1;
}

.sidebar-label {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    font-variant: small-caps;
    color: var(--warm-sepia);
    margin-bottom: 4px;
}

.sidebar-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--deep-umber);
    margin-bottom: 16px;
}

.sidebar-divider {
    width: 40px;
    height: 1px;
    background-color: var(--warm-sepia);
    opacity: 0.4;
    margin-bottom: 16px;
}

/* --- Pull Quotes --- */
.pull-quote-panel {
    padding: 28px 24px;
    border-left: 3px solid var(--amber-highlight);
    background-color: rgba(200, 160, 80, 0.06);
}

.pull-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: clamp(16px, 1.3vw, 20px);
    font-style: italic;
    line-height: 1.5;
    color: var(--dark-sepia);
}

/* --- Research Entries --- */
.research-entry {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.research-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.entry-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: clamp(20px, 2vw, 26px);
    color: var(--deep-umber);
    margin-bottom: 8px;
    line-height: 1.3;
}

.entry-meta {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.08em;
    font-variant: small-caps;
    color: var(--warm-sepia);
    margin-bottom: 16px;
}

/* --- Archive Items --- */
.archive-item {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.archive-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* --- Sepia Photography Section --- */
.sepia-photo-section {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(45deg, var(--dark-sepia) 0%, var(--warm-sepia) 50%, #6B5B4A 100%);
    filter: sepia(80%) brightness(90%) contrast(110%);
}

.sepia-photo-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sepia-text-overlay {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 40px;
    text-align: center;
}

.sepia-caption {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(16px, 1.4vw, 22px);
    line-height: 1.7;
    color: var(--aged-parchment);
    text-shadow: 0 1px 8px rgba(42, 36, 32, 0.4);
}

/* --- Contact Section --- */
.contact-details {
    margin-top: 32px;
}

.contact-line {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(139, 115, 85, 0.12);
}

.contact-label {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    font-variant: small-caps;
    color: var(--warm-sepia);
    flex: 0 0 160px;
}

.contact-value {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--amber-highlight);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--deep-umber);
}

/* --- Footer --- */
#site-footer {
    background-color: var(--deep-umber);
    padding: 60px 0 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logotype {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--aged-parchment);
    margin-bottom: 12px;
}

.footer-tagline {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: 14px;
    line-height: 1.7;
    color: var(--warm-sepia);
    max-width: 300px;
}

.footer-heading {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    font-variant: small-caps;
    color: var(--warm-sepia);
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--marble-white);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--amber-highlight);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
}

.footer-ornament {
    width: 300px;
    margin: 0 auto 20px;
}

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

.footer-copy {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.08em;
    font-variant: small-caps;
    color: var(--warm-sepia);
    opacity: 0.7;
}

/* --- Scroll-reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Link Styles --- */
a {
    color: var(--amber-highlight);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--deep-umber);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        padding: 40px 24px;
    }

    .hero-text {
        flex: none;
        width: 100%;
    }

    .hero-marble {
        flex: none;
        width: 100%;
    }

    .f-pattern-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .f-gutter {
        display: none;
    }

    .f-sidebar {
        order: 2;
    }

    .f-pattern-section {
        padding: 40px 24px 60px;
    }

    .nav-inner {
        padding: 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .contact-line {
        flex-direction: column;
        gap: 4px;
    }

    .contact-label {
        flex: none;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 11px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    #hero {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }

    .hero-headline {
        font-size: clamp(32px, 8vw, 48px);
    }

    .section-heading {
        font-size: clamp(26px, 7vw, 42px);
    }
}
