/* ======================================================
   BETTERCREDIT: Sankofa Theme
   Style: Vibrant / Archival Typographic Expression
====================================================== */

/* ----------------- ROOT PALETTE ----------------- */
:root {
    /* Colors */
    --cream: #FAF9F6;
    --charcoal: #1A1A1A;
    --gold: #C5A059;
    --blush: #F4EBE8;

    --vibrant-primary: #FF6A3C;
    --vibrant-accent: #6C63FF;
    --muted-primary: #8A7F72;
    --muted-accent: #BDB1A3;

    /* Typography */
    --font-heading: 'Formera', serif;
    --font-body: 'Chakra Petch', sans-serif;
    --font-dogon-heading: 'Jaro', serif;
    --font-mono: 'Courier New', monospace;

    /* Font Sizes */
    --heading-large: 3.5rem;
    --heading-medium: 2.5rem;
    --heading-small: 1.8rem;
    --body-text: 1rem;
    --body-large: 1.25rem;

    /* Line Heights */
    --line-heading: 1.1;
    --line-body: 1.6;
}

/* ----------------- BODY & TYPOGRAPHY ----------------- */
body {
    font-family: var(--font-body);
    font-size: var(--body-text);
    line-height: var(--line-body);
    color: var(--charcoal);
    background-color: var(--cream);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--line-heading);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    color: var(--charcoal);
}

h1 { font-size: var(--heading-large); color: var(--vibrant-primary); }
h2 { font-size: var(--heading-medium); color: var(--vibrant-accent); }
h3 { font-size: var(--heading-small); }
h4 { font-size: 1.5rem; }

/* Dogon (Muted / Archival) Variation */
.dogon h1, .dogon h2, .dogon h3, .dogon h4 {
    font-family: var(--font-dogon-heading);
    color: var(--muted-primary);
    font-weight: 700;
}

p, li {
    font-family: var(--font-body);
    font-size: var(--body-text);
    line-height: var(--line-body);
    color: var(--charcoal);
}

a {
    text-decoration: none;
    color: var(--vibrant-primary);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--vibrant-accent);
}
.font-pacifico { font-family: 'Pacifico', cursive; }
.font-sacramento { font-family: 'Sacramento', cursive; }


/* Display / Cursive */
.cursive {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--gold);
    line-height: 0.8;
}

/* ----------------- BUTTONS ----------------- */
.btn-editorial {
    font-family: var(--font-heading);
    padding: 1.2rem 2.8rem;
    border: 1px solid var(--charcoal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    cursor: pointer;
    background: transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.btn-editorial:hover {
    background: var(--vibrant-accent);
    color: var(--cream);
    transform: translateY(-2px);
}

/* ----------------- HERO / BOLD AREAS ----------------- */
.hero-bg {
    background-image: radial-gradient(circle at 20% 20%, var(--vibrant-primary) 0%, var(--vibrant-accent) 60%);
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(250, 249, 246, 0.8);
}

/* ----------------- CARD & FEATURED AREAS ----------------- */
.card {
    background: var(--cream);
    border: 1px solid var(--blush);
    border-radius: 0.6rem;
    padding: 2rem;
    transition: all 0.4s ease;
}
.card:hover {
    box-shadow: 0 16px 24px rgba(194,124,138,0.15);
    transform: translateY(-6px);
}

/* ----------------- TYPOGRAPHIC BLOCKS ----------------- */
.editorial-block {
    max-width: 820px;
}
.editorial-block p {
    font-size: 1.05rem;
    color: var(--charcoal);
    margin-bottom: 1.2rem;
}

.pull-quote {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 4rem 0;
    position: relative;
}
.pull-quote span {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--vibrant-accent);
    margin-top: 0.5rem;
}

/* ----------------- REVEAL ANIMATIONS ----------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ----------------- NAVBAR ----------------- */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--cream);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}
#main-nav a {
    text-decoration: none;
    color: var(--charcoal);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}
#main-nav a:hover { color: var(--vibrant-accent); }
.nav-scrolled {
    padding: 1rem 2rem !important;
    box-shadow: 0 4px 16px rgba(194,124,138,0.15);
}

/* ----------------- CURSIVE LOGO ----------------- */
.logo-cursive {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--vibrant-accent);
    line-height: 0.7;
}

/* ----------------- OVERLAY / MODAL ----------------- */
.overlay-panel {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 5000;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    overflow-y: auto;
}
.overlay-panel.active { transform: translateY(0); }

/* ----------------- MESH / BACKGROUND ----------------- */
.bg-mesh {
    background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
                      radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
                      radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    filter: blur(100px); 
    opacity: 0.15; 
    position: fixed; 
    inset: 0; 
    z-index: -1;
}

/* ----------------- TYPOSPHERE / CODE ----------------- */
.code-text {
    font-family: var(--font-mono);
    color: var(--charcoal);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
}

/* ----------------- UTILITIES ----------------- */
.text-accent { color: var(--vibrant-accent); }
.bg-accent { background-color: var(--vibrant-accent); }
.text-muted { color: rgba(18, 18, 18, 0.6); }
