/* ─── Inspired by Dionysus — Style ─────────────────────────────────────────── */
/* Warm, classical aesthetic. Raleway headings, Neuton body. */

:root {
    --wine: #722F37;
    --wine-dark: #5A252C;
    --wine-light: #8B3A42;
    --gold: #C5A55A;
    --gold-light: #D4BA7A;
    --cream: #F5F0E8;
    --cream-dark: #EDE5D8;
    --text: #2C1810;
    --text-light: #5A4A3A;
    --white: #FDFBF7;
    --max-width: 1100px;
    --article-width: 720px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Neuton', Georgia, 'Times New Roman', serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Typography ────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--wine);
}

h1 { font-size: 2.2rem; margin-bottom: 0.6em; }
h2 { font-size: 1.6rem; margin-bottom: 0.5em; margin-top: 1.5em; }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; margin-top: 1.2em; }
h4 { font-size: 1.1rem; margin-bottom: 0.3em; margin-top: 1em; }

p {
    margin-bottom: 1.2em;
}

a {
    color: var(--wine);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-light);
    transition: color 0.2s, border-color 0.2s;
}

a:hover {
    color: var(--wine-dark);
    border-bottom-color: var(--gold);
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--gold);
    background: var(--cream-dark);
    font-style: italic;
    color: var(--text-light);
}

blockquote p:last-child {
    margin-bottom: 0;
}

ul, ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.4em;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ─── Header ────────────────────────────────────────────────────────────────── */

.site-header {
    background: var(--wine);
    color: var(--cream);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(44, 24, 16, 0.15);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    border: none;
}

.site-logo img {
    height: 36px;
    width: auto;
    border-radius: 0;
    filter: invert(1);
}

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

.site-nav a {
    color: var(--cream);
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    padding: 0.3em 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.site-nav a:hover {
    border-bottom-color: var(--gold);
    color: var(--gold-light);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────────── */

.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    border-bottom-color: transparent;
}

.breadcrumb a:hover {
    color: var(--wine);
    border-bottom-color: var(--gold-light);
}

.breadcrumb span {
    color: var(--wine);
}

/* ─── Starry Sky Hero (Landing) ──────────────────────────────────────────────── */

.landing {
    overflow: hidden;
}

.hero-sky {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #0a0a1a;
}

/* Layer 1: Animated starry sky */
.sky-layer {
    position: absolute;
    inset: 0;
    background: url('/images/good_stars_glow.gif') center/cover no-repeat;
    z-index: 1;
}

/* Layer 2: Clickable navigation stars */
.stars-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.nav-star {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transform: translate(-50%, -50%);
}

.star-glow {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow:
        0 0 8px 2px rgba(197, 165, 90, 0.8),
        0 0 20px 6px rgba(197, 165, 90, 0.4),
        0 0 40px 12px rgba(197, 165, 90, 0.15);
    animation: star-pulse 3s ease-in-out infinite;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-star:hover .star-glow {
    transform: scale(1.8);
    box-shadow:
        0 0 12px 4px rgba(197, 165, 90, 1),
        0 0 30px 10px rgba(197, 165, 90, 0.6),
        0 0 60px 20px rgba(197, 165, 90, 0.25);
}

/* Offset the pulse timing per star */
.star-wine .star-glow { animation-delay: 0s; }
.star-ns .star-glow { animation-delay: 0.8s; }
.star-wp .star-glow { animation-delay: 1.6s; }
.star-about .star-glow { animation-delay: 2.4s; }

.star-label {
    display: block;
    margin-top: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0);
    text-shadow: 0 0 10px rgba(197, 165, 90, 0);
    transition: color 0.4s, text-shadow 0.4s;
    white-space: nowrap;
}

.nav-star:hover .star-label {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(197, 165, 90, 0.5);
}

@keyframes star-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Layer 3: Title text */
.sky-title {
    position: absolute;
    bottom: 38%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 4;
    padding: 0 1.5rem;
    pointer-events: none;
}

.sky-title h1 {
    color: var(--cream);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin: 0;
    text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

/* Layer 4: Temple silhouette foreground */
.temple-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: url('/images/foreground.png') center bottom/cover no-repeat;
    z-index: 5;
    pointer-events: none;
}

/* ─── Intro (Landing) ───────────────────────────────────────────────────────── */

.intro {
    max-width: var(--article-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
}

/* ─── Section Cards (Landing) ───────────────────────────────────────────────── */

.sections-grid {
    max-width: var(--max-width);
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.section-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 240px;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44, 24, 16, 0.15);
}

.section-wine {
    background: linear-gradient(135deg, #722F37, #8B3A42);
}

.section-ns {
    background: linear-gradient(135deg, #2C4A3E, #3A6356);
}

.section-wp {
    background: linear-gradient(135deg, #2C3E6A, #3A5080);
}

.section-about {
    background: linear-gradient(135deg, #5A4A3A, #6B5A48);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

.card-content h2 {
    color: var(--cream);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.3em;
}

.card-content p {
    color: var(--gold-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* ─── Section Hero ──────────────────────────────────────────────────────────── */

.section-hero {
    text-align: center;
    padding: 3rem 1.5rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-subtitle {
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
    margin-top: -0.3em;
}

/* ─── Article Grid (Section Index) ──────────────────────────────────────────── */

.article-grid {
    max-width: var(--max-width);
    margin: 1rem auto 3rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    display: block;
    background: var(--white);
    border-radius: 6px;
    padding: 1.5rem;
    border: 1px solid var(--cream-dark);
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
    border-bottom-color: var(--gold);
    box-shadow: 0 4px 16px rgba(44, 24, 16, 0.08);
    transform: translateY(-2px);
}

.article-card time {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

.article-card h3 {
    color: var(--wine);
    font-size: 1.15rem;
    margin: 0 0 0.4em;
    line-height: 1.3;
}

.article-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ─── Article Page ──────────────────────────────────────────────────────────── */

.article-page {
    max-width: var(--article-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--cream-dark);
}

.article-date {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

.article-body {
    font-size: 1.05rem;
}

.article-body img {
    display: block;
    margin: 1.5em auto;
    max-width: 100%;
    box-shadow: 0 2px 12px rgba(44, 24, 16, 0.1);
}

.article-body a img {
    box-shadow: 0 2px 12px rgba(44, 24, 16, 0.1);
    transition: box-shadow 0.2s;
}

.article-body a:has(img) {
    border: none;
}

.article-body a img:hover {
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.18);
}

/* About page — Maslow pyramid */
.about-page img {
    max-width: 500px;
}

/* ─── Video Embeds ──────────────────────────────────────────────────────────── */

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.5em 0;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(44, 24, 16, 0.1);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
    margin-top: auto;
    background: var(--wine-dark);
    color: var(--cream-dark);
    padding: 1.5rem 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.footer-inner p {
    margin: 0;
}

/* ─── Mobile ────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .sky-title h1 {
        font-size: 2rem;
    }

    .star-label {
        color: rgba(245, 240, 232, 0.5) !important;
        font-size: 0.6rem;
    }

    .star-glow {
        width: 12px;
        height: 12px;
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }

    .section-card {
        min-height: 180px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--wine);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 0.7em 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .sky-title h1 {
        font-size: 1.6rem;
    }

    .article-page {
        padding: 1rem 1rem 3rem;
    }
}
