/* mystical.day - Botanical Apothecary Almanac */

:root {
    --parchment-dark: #1a1814;
    --parchment-mid: #242018;
    --parchment-light: #e8e0d0;
    --marble-vein: #8a7e6c;
    --neon-teal: #00e5c8;
    --neon-pink: #ff3e8a;
    --neon-amber: #ffb030;
    --font-display: 'Space Mono', monospace;
    --font-body: 'Spectral', serif;
    --font-ui: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--parchment-dark);
    color: var(--parchment-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.75;
}

/* Neon Glow Classes */
.neon-teal {
    color: var(--neon-teal);
    text-shadow: 0 0 16px rgba(0, 229, 200, 0.4);
}

.neon-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 16px rgba(255, 62, 138, 0.4);
}

.neon-amber {
    color: var(--neon-amber);
    text-shadow: 0 0 16px rgba(255, 176, 48, 0.4);
}

/* Marble Texture Accent */
.marble-accent {
    background-color: var(--parchment-mid);
    background-image:
        linear-gradient(12deg, rgba(138, 126, 108, 0.06) 0%, transparent 40%),
        linear-gradient(78deg, rgba(138, 126, 108, 0.04) 0%, transparent 50%),
        linear-gradient(155deg, rgba(138, 126, 108, 0.05) 0%, transparent 35%);
}

/* ============================================
   Section 1: Cover Page (Hero)
   ============================================ */

.section-cover {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.marble-border {
    position: absolute;
    top: 20px;
    left: 20px;
    bottom: 20px;
    right: auto;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border-top: 2px solid var(--marble-vein);
    border-left: 2px solid var(--marble-vein);
    border-bottom: 2px solid var(--marble-vein);
    border-right: none;
    opacity: 0.15;
    pointer-events: none;
}

.z-pattern-hero {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 40px;
    position: relative;
}

.z-top-left {
    align-self: start;
}

.cover-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.cover-subtitle {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 300;
    color: var(--marble-vein);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.z-top-right {
    justify-self: end;
    align-self: start;
}

.hero-botanical {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(0, 229, 200, 0.2));
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.z-diagonal {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
}

.diagonal-line {
    width: 100%;
    height: 2px;
}

.z-bottom-left {
    align-self: end;
}

.cover-desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--parchment-light);
    line-height: 1.8;
    max-width: 400px;
    opacity: 0.8;
}

.z-bottom-right {
    justify-self: end;
    align-self: end;
    text-align: right;
}

.edition-marker {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--marble-vein);
    display: block;
    margin-bottom: 4px;
}

.edition-vol {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--marble-vein);
    opacity: 0.5;
    letter-spacing: 0.08em;
}

/* ============================================
   Section 2: Almanac Entries
   ============================================ */

.section-entries {
    padding: 80px 5%;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.05em;
}

.entries-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.almanac-entry {
    border: 1px solid rgba(138, 126, 108, 0.1);
    border-radius: 4px;
    padding: 36px 32px;
    background: var(--parchment-mid);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.almanac-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.entry-z {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.entry-header {
    flex: 1;
}

.entry-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 4px;
}

.entry-code {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--marble-vein);
    letter-spacing: 0.12em;
}

.entry-botanical {
    flex-shrink: 0;
}

.entry-botanical svg {
    width: 100px;
    height: 120px;
}

.entry-body p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--parchment-light);
    line-height: 1.8;
    margin-bottom: 16px;
    opacity: 0.85;
}

.entry-quote {
    padding: 16px 20px;
    border-left: 2px solid var(--neon-teal);
    font-family: var(--font-body);
    font-size: 14px;
    font-style: italic;
    color: var(--parchment-light);
    opacity: 0.7;
    border-radius: 2px;
}

/* ============================================
   Section 3: Closing Observation
   ============================================ */

.section-closing {
    padding: 60px 5%;
    display: flex;
    justify-content: center;
}

.closing-card {
    max-width: 600px;
    padding: 36px 32px;
    border: 1px solid rgba(138, 126, 108, 0.12);
    border-radius: 4px;
    text-align: center;
}

.closing-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    opacity: 0.8;
}

.closing-sig {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.05em;
}

/* ============================================
   Footer
   ============================================ */

.section-footer {
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid rgba(138, 126, 108, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.footer-edition {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--marble-vein);
    letter-spacing: 0.08em;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .z-pattern-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .z-top-right {
        justify-self: start;
    }

    .z-bottom-right {
        justify-self: start;
        text-align: left;
    }

    .section-cover {
        padding: 30px 20px;
    }

    .marble-border {
        display: none;
    }

    .almanac-entry {
        padding: 24px 20px;
    }

    .entry-z {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-botanical {
        width: 90px;
    }

    .entry-botanical svg {
        width: 70px;
        height: 85px;
    }
}
