/* --- 1. Global Variables & Reset --- */
:root {
    /* --- Background tuning knobs --- */
    --bg-size: cover;
    --bg-position: center center;

    /* --- Vignette tuning: center darkness → edge clarity --- */
    --vignette-center: rgba(6, 8, 16, 0.86);
    --vignette-mid:    rgba(6, 8, 16, 0.62);
    --vignette-edge:   rgba(6, 8, 16, 0.12);

    /* --- Text --- */
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --accent-gold: #d4af37;
    --accent-gold-soft: #e8c96a;

    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-devanagari: "Noto Serif Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-primary);
    background-color: #060810;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 2. Background Layer with Crossfade + Radial Vignette --- */
.background-image {
    position: fixed;
    inset: 0;
    background-image: url('assets/background.jpg');
    background-size: var(--bg-size);
    background-position: var(--bg-position);
    background-repeat: no-repeat;
    background-color: #060810;
    z-index: -2;
}

.background-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/background_01.jpg');
    background-size: var(--bg-size);
    background-position: var(--bg-position);
    background-repeat: no-repeat;
    opacity: 0;
    animation: crossfade 20s ease-in-out infinite;
}

@keyframes crossfade {
    0%,   40%  { opacity: 0; }
    50%,  90%  { opacity: 1; }
    100%       { opacity: 0; }
}

/* Radial vignette: dark at center for text, clear at edges for art */
.background-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 90% 80% at 50% 50%,
        var(--vignette-center) 0%,
        var(--vignette-mid)    45%,
        var(--vignette-edge)   100%
    );
}

/* --- 3. Content Layer (No Card) --- */
.content-container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
}

.announcement {
    width: 100%;
    max-width: 640px;
    color: var(--text-primary);
}

/* --- Invocations (top-left and top-right) --- */
.invocation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.invocation {
    font-family: var(--font-devanagari);
    font-size: clamp(0.72rem, 1.4vw, 0.88rem);
    font-weight: 500;
    color: var(--accent-gold);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

/* --- Header --- */
.announcement-header {
    text-align: center;
}

.logo-placeholder {
    width: clamp(64px, 9vw, 84px);
    height: clamp(64px, 9vw, 84px);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.08), 0 4px 20px rgba(0, 0, 0, 0.5);
    background: rgba(6, 8, 16, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.logo-placeholder span {
    font-family: var(--font-devanagari);
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 500;
    color: var(--accent-gold);
    line-height: 1;
    padding-bottom: 0.15em;
}

.organisation-name {
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin-bottom: 0.55rem;
    color: var(--text-primary);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.organisation-subtitle {
    font-size: clamp(0.78rem, 1.6vw, 0.95rem);
    font-weight: 300;
    color: var(--accent-gold-soft);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.divider {
    width: 64px;
    height: 1px;
    margin: 0 auto 2rem;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
    opacity: 0.85;
}

/* --- Body --- */
.announcement-body {
    text-align: left;
}

.greeting {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.message {
    font-size: clamp(0.92rem, 1.7vw, 1rem);
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.7);
}

.message strong {
    color: var(--text-primary);
    font-weight: 600;
}

.salutation {
    font-size: clamp(0.92rem, 1.7vw, 1rem);
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    font-weight: 300;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.blessing {
    font-family: var(--font-devanagari);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.02em;
    text-align: center;
    margin: 0.75rem 0 1.75rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 24px rgba(212, 175, 55, 0.25);
}

/* --- Signature --- */
.signature {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.signature-name {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.signature-org {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: var(--accent-gold-soft);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

/* --- 4. Site Footer --- */
.site-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1.5rem 2rem 1.75rem;
    text-align: center;
}

.site-footer p {
    font-size: clamp(0.72rem, 1.3vw, 0.82rem);
    color: var(--text-muted);
    letter-spacing: 0.06em;
    font-weight: 300;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.site-footer p > a {
	text-decoration: none;
}

.footer-name {
    color: var(--accent-gold);
    font-weight: 400;
}

/* --- 5. Mobile Adjustments --- */
@media (max-width: 640px) {
    :root {
        /* Show the full artwork on mobile instead of cropping it */
        --bg-size: contain;
        --bg-position: center top;
        /* Vignette shifts lower, since art now sits at the top */
        --vignette-center: rgba(6, 8, 16, 0.55);
        --vignette-mid:    rgba(6, 8, 16, 0.35);
        --vignette-edge:   rgba(6, 8, 16, 0.85);
    }

    .content-container {
        padding: 1.5rem 1.25rem 3rem;
        justify-content: flex-start;
    }

    .invocation-row {
        flex-direction: column;
        gap: 0.4rem;
        margin-bottom: 1.75rem;
    }

    .divider {
        margin-bottom: 1.5rem;
    }
}

/* --- 6. Accessibility: Respect Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .background-image::before {
        animation: none;
        opacity: 0;
    }
    html {
        scroll-behavior: auto;
    }
}
