:root {
    /* Default = dark theme values */
    --bg: #05060a;
    --bg-alt: #0b0d14;
    --header: rgba(5, 6, 10, 0.95);
    --accent: #f5b100;
    --accent-soft: rgba(245, 177, 0, 0.14);
    --accent-danger: #ff4a4a;
    --text: #f6f7fb;
    --muted: #a7abbc;
    --border: #1f2233;
    --card: #111320;
    --highlight: #1a1e30;
    --radius-lg: 1.25rem;
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.75);
}

/* Light theme override: when body has .theme-light, override variables */
body.theme-light {
    --bg: #f5f5f7;
    --bg-alt: #ffffff;
    --header: rgba(15, 23, 42, 0.96); /* keep header slightly dark for contrast */
    --accent: #d97706;
    --accent-soft: rgba(234, 179, 8, 0.12);
    --accent-danger: #b91c1c;
    --text: #0f172a;
    --qmuted: #6b7280;
    --muted: #000;
    --border: #e5e7eb;
    --card: #ffffff;
    --highlight: #f3f4f6;
}

body.bg-app {
    background: radial-gradient(circle at top, #101224 0, var(--bg) 55%);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* In light mode, force a clean white background instead of a gradient */
body.theme-light.bg-app {
    background: #ffffff;
}


.bg-header {
    background: linear-gradient(to bottom, var(--header), rgba(5, 6, 10, 0.82));
    backdrop-filter: blur(18px);
}

.border-app {
    border-color: var(--border) !important;
}

.text-app {
    color: var(--text);
}

.text-muted-app {
    color: var(--muted) !important;
}

.card-app {
    background: radial-gradient(circle at top left, #161829, var(--bg) 55%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-lg);
}

.card-soft {
    background: var(--card);
    border-radius: 0.9rem;
    border: 1px solid var(--border);
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 0.75rem;
    background: radial-gradient(circle at 20% 0, #ffdf80, #f5b100 35%, #7b4a00 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1200;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 8px 20px rgba(0, 0, 0, 0.8);
}

/* Buttons */
.btn-accent {
    background: radial-gradient(circle at 10% 0, #ffeaa0, #f5b100 35%, #c97a00 100%);
    color: #1a1200;
    border-radius: 999px;
    border: 1px solid #f5b100;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8);
}

body.theme-light .btn-accent {
    background: radial-gradient(circle at 10% 0, #fef3c7, #facc15 35%, #d97706 100%);
    border-color: #facc15;
}

.btn-accent:hover {
    filter: brightness(1.06);
    color: #1a1200;
}

.btn-outline-soft {
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: rgba(4, 6, 16, 0.8);
    font-weight: 500;
}

body.theme-light .btn-outline-soft {
    background: rgba(255, 255, 255, 0.9);
}

.btn-outline-soft:hover {
    background: var(--highlight);
    color: var(--text);
}

/* Section headings & text */
.section-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 600;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Pills / tags */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 0.4rem;
}

/* Hero */
.hero-title {
    font-size: clamp(1.9rem, 2.8vw, 2.4rem);
    line-height: 1.2;
    font-weight: 700;
}

    .hero-title span {
        color: var(--accent);
    }

.hero-subtitle {
    font-size: 0.98rem;
    color: var(--muted);
    max-width: 32rem;
}

.hero-note {
    font-size: 0.82rem;
    color: var(--muted);
}

    .hero-note span {
        color: var(--accent);
    }

/* Author photo placeholder */
.author-photo {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: radial-gradient(circle at 20% 0, #444b63, #151829 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 0.75rem;
}

body.theme-light .author-photo {
    background: radial-gradient(circle at 20% 0, #e5e7eb, #cbd5f5 60%);
}

/* Optional: adjust link colors slightly in light mode if needed */
body.theme-light a {
    color: #b45309;
}

    body.theme-light a:hover {
        color: #92400e;
    }

.cover-frame {
    background: var(--card);
    border-radius: 0.9rem;
    padding: 0.6rem;
    border: 1px solid var(--border);
    /* Center the image */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cover-image {
    display: block;
    max-width: 100%;
    height: auto;
}


