/* quietjoon.com - Dark Academia Personal Library */

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

:root {
    --library-dark: #1A1410;
    --wood-deep: #2A2218;
    --lamp-gold: #D4A850;
    --parchment: #F5E6CC;
    --parchment-mid: #F0E8D8;
    --leather-brown: #8A7A5A;
    --burgundy: #7A3030;
    --ivy-green: #3A5A3A;
    --dust-gray: #A09880;
}

body {
    background-color: var(--library-dark);
    color: var(--parchment);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.85;
    overflow-x: hidden;
}

/* Desk Lamp Spotlight */
#desk-lamp-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 60% 30%, rgba(245, 230, 204, 0.04), transparent 50%);
    opacity: 0;
    animation: lampFadeIn 2s ease-out 0.5s forwards;
}

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

/* Grain Overlay */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

#hero-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--lamp-gold);
    opacity: 0;
    animation: fadeIn 1.5s ease-out 2s forwards;
}

#hero-subtitle {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dust-gray);
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 3s forwards;
}

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

/* Page Divider */
.page-divider {
    text-align: center;
    padding: 1rem 0;
    position: relative;
    z-index: 2;
    opacity: 0.4;
}

/* Editorial Layout */
#editorial {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

.editorial-section {
    display: grid;
    grid-template-columns: 35% 60%;
    gap: 5%;
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.editorial-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Margin Column */
.margin-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(160, 152, 128, 0.15);
}

.catalog-card {
    width: 180px;
    border: 1px solid rgba(160, 152, 128, 0.25);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.catalog-line {
    display: block;
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--dust-gray);
    padding: 0.3rem 0;
    border-bottom: 1px dotted rgba(160, 152, 128, 0.2);
}

.catalog-line em {
    font-family: 'Alegreya Sans', sans-serif;
    font-style: italic;
    color: var(--parchment-mid);
}

.margin-note {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--leather-brown);
}

/* Body Column */
.body-column {
    padding-top: 0.5rem;
}

.section-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--parchment);
    margin-bottom: 1.5rem;
}

.body-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--parchment-mid);
    margin-bottom: 1.25rem;
}

/* Work Entries */
.work-entry {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(160, 152, 128, 0.1);
}

.work-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--parchment);
}

.work-year {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--dust-gray);
}

/* Pull Quote */
.pull-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--lamp-gold);
    border-left: 2px solid var(--burgundy);
    padding-left: 1.5rem;
    margin: 2rem 0;
    line-height: 1.7;
}

/* Colophon */
.colophon-text {
    font-size: 0.85rem;
    color: var(--dust-gray);
    font-style: italic;
}

/* Footer */
#site-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
}

.footer-mark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--burgundy);
    letter-spacing: 0.1em;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .editorial-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .margin-column {
        align-items: flex-start;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(160, 152, 128, 0.1);
        padding-bottom: 1.5rem;
    }
}
