/* ================= BASE ================= */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


body.dark-mode {
    --bg-main: #121212;
    --bg-surface: #1a1a1a;
    --bg-elevated: #222;
    --bg-soft: #4d4d4d;
    --bg-hero-panel: #1f1f1f; /* slightly lifted from bg-main */

    --text-main: #f1f1f1;
    --text-muted: #b5b5b5;
    --text-inverse: #111;

    --border-subtle: rgba(255,255,255,0.12);
    --accent-primary: #f97316;
}


/* ================= THEME TOKENS ================= */

:root {
    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-surface: #f4f4f4;
    --bg-elevated: #ffffff;
    --bg-soft: #f2f5f9; /* pale blue-gray (Microsoft-ish) */
     --bg-hero-panel: #d0d8e3; /* soft blue-gray, keeps form */

    /* Text */
    --text-main: #111111;
    --text-muted: #555555;
    --text-inverse: #ffffff;

    /* Borders & Accents */
    --border-subtle: rgba(0,0,0,0.1);
    --accent-primary: #c2410c;
}


body:not(.dark-mode) {
    --bg-main: #ffffff;
    --bg-surface: #f4f4f4;
    --bg-elevated: #ffffff;

    --text-main: #111111;
    --text-muted: #555555;
    --text-inverse: #ffffff;

    --border-subtle: rgba(0,0,0,0.1);
    --accent-primary: #c2410c;
}


/* ================= NAVBAR ================= */

:root {
    --nav-height: 80px;
}

.sc-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-main);
    color: var(--text-main);
    /* border-bottom: 1px solid var(--border-subtle);  */
    z-index: 1000;
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-text-sm {
    font-size: .877rem;
    font-weight: 700;
}

/* Hamburger */
.nav-hamburger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-main);
}

.hamburger-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    margin: 4px 0;
}

.menu-text {
    font-size: .877rem;
    display: none;
    font-weight: 600;
}

@media (min-width: 768px) {
    .menu-text { display: inline; }
}

/* Logo */
.nav-logo img {
    height: 58px;
    margin-top:15px;
}

/* ================= LOGO MODE SWAP ================= */

/* Default: LIGHT MODE */
.logo-dark {
    display: none;
}

.logo-light {
    display: block;
}

/* DARK MODE */
body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block;
}


/* Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.nav-logo a {
    display: inline-block;
}

.nav-right a,
.menu-text {
    color: var(--text-main);
}

.nav-right a:hover {
    color: var(--accent-primary);
}




/* ================= OFFCANVAS ================= */

.sc-offcanvas {
    background: var(--bg-main);
    backdrop-filter: blur(10px);
    width: 280px;
    color: var(--text-main);
}

.sc-menu {
    list-style: none;
    padding: 4rem 1.5rem;
    margin: 0;
}

.sc-menu li a {
    display: block;
    padding: 0.75rem 1rem;

    color: var(--text-main);
    text-decoration: none;

    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.05em;

    border-radius: 4px;
    transition: background 0.2s ease;
}

.sc-menu li a:hover {
    background: var(--bg-surface);
}

/* Close button */
.desktop-close {
    position: absolute;
    top: 12px;
    right: 12px;

    background: none;
    border: none;

    color: var(--text-main);
    cursor: pointer;
}



/* ================= HERO ================= */
.site-wrapper {
    padding-top: var(--nav-height);
}

.hero-inner {
    max-width: 1300px;
    margin: 1rem auto 2rem auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: 520px;
}


.hero-image {
    background-size: cover;
    background-position: center;
    border-radius: 12px 0 0 12px;
}

.hero-panel {
    background: var(--bg-hero-panel);
    color: var(--text-main);
    padding: 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.3s ease;
    border-radius: 0 12px 12px 0;
}

.hero-panel:hover {
    background: var(--bg-soft);
}

.hero-label {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.1em;
    margin-bottom:.01rem;
    color: #f97316;
}

.hero-panel h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

.hero-panel p {
    font-family: 'Literata', serif;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;

    align-self: flex-start;
    width: fit-content;

    margin-top: 0.9rem;
    padding: 0.45rem 0.9rem;

    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--text-main);
    background: transparent;

    border: 1px solid var(--border-subtle);
    border-radius: 999px;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}

.hero-cta i {
    font-size: 0.75rem;
}

/* Hover */
.hero-cta:hover {
    background: var(--accent-primary);
    color: var(--text-inverse);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}



/* ================= FEATURED ARTICLES ================= */

.section-featured {
    padding: 2rem 1rem;
}

.section-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

/* Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* ================= BOOK COVERS ================= */

/* ================= BOOK CARDS ================= */

.book-cover {
    aspect-ratio: 4 / 5; /* 800 x 1000 */
    background-size: cover;
    background-position: center;
}

/* Card */
.book-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Hover zoom stays subtle */
.book-card:hover .book-cover {
    transform: scale(1.05);
}

.book-cover {
    transition: transform 0.6s ease;
}

/* Content */
.book-card .featured-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.book-card h3 {
    text-align: left;
    font-size: 1.45rem;
    margin: 0.75rem 0 0.5rem;
    font-family: 'Oswald', sans-serif;
}

.book-card p {
    font-family: 'Literata', serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: left;
}


/* ================= BOOK CTA ================= */

.book-cta {
    display: inline-block;
    margin-top: 0.9rem;
    padding: 0.45rem 0.9rem;

    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--text-main);
    background: transparent;

    border: 1px solid var(--border-subtle);
    border-radius: 999px;

    text-decoration: none;
    transition: 
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}

.book-cta i {
    font-size: 0.75rem;
}


/* Hover */
.book-cta:hover {
    background: var(--accent-primary);
    color: var(--text-inverse);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Center CTA under text */
.book-card .featured-content {
    text-align: center;
}

/* ================= ABOUT THE AUTHOR ================= */

.section-author {
    padding: 3rem 1rem 2rem;
    border-top: 1px solid var(--border-subtle);
}

.section-title-center {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Grid */
.author-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2.5rem;
    align-items: flex-start;
}

/* Image */
.author-image-wrap {
    width: 100%;
}

.author-image {
    width: 100%;
    border-radius: 16px; /* matches book cards */
}

/* Content */
.author-content p {
    font-family: 'Literata', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Mobile */
@media (max-width: 900px) {
    .author-grid {
        grid-template-columns: 1fr;
    }

    .author-image {
        max-width: 320px;
        margin: 0 auto;
    }

    .author-content {
        text-align: left;
    }
}


/* ================= FEATURED IMAGE HOVER ================= */

.featured-image {
   
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-image {
    transform: scale(1.05);
}


/* Responsive */
@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    

    .featured-content {
        padding: 1.25rem;
    }
}




/* ================= DARK MODE BUTTON ================= */

.dark-mode-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;

    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 10px;

    font-family: 'Open Sans', sans-serif;
    font-size: .875rem;
    font-weight: 600;

    color: var(--text-main);
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.dark-mode-btn:hover {
    opacity: 0.75;
}

.dark-mode-btn i {
    font-size: .875rem;
    color: var(--text-main);
}

.dark-mode-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}


/* ================= NAVBAR MOBILE ================= */
@media (max-width: 768px) {

    /* Hide social icons */
    .nav-right a {
        display: none;
    }

    /* Hide LIGHT / DARK text, keep icon */
    .dark-mode-btn span {
        display: none;
    }

    /* Center logo absolutely */
    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Mobile logo size */
    .nav-logo img {
        height: 42px;
    }

    /* Ensure hamburger stays left */
    .nav-hamburger {
        z-index: 2;
    }

    /* Right area stays minimal */
    .nav-right {
        z-index: 2;
    }
}

/* ================= HERO MOBILE ================= */
@media (max-width: 1299px) {

    .hero-image {
        min-height: 320px;
        border-radius: 0 0 0 0;        
    }

     .hero-panel {
        border-radius: 0 0 0 0;
        padding: 1.5rem;
    }

}

@media (max-width: 768px) {

    .hero-inner {
        grid-template-columns: 1fr;
        /* margin: 1rem; */
        
    }

    .hero-image {
        min-height: 420px;
        border-radius: 0 0 0 0;
        background-image: url('/assets/images/article-1-mob.webp') !important;
    }

    .hero-panel {
        border-radius: 0 0 0 0;
        padding: 1.5rem;
    }
}


/* ============================================
   FOOTER – striplinpub
   ============================================ */

.site-footer {
    padding: 3rem 1rem 2.5rem;
    background: var(--bg-main);
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

/* Logo */
.footer-logo {
    width: clamp(160px, 22vw, 260px);
    height: auto;
    opacity: 0.9;
}

/* Social icons */
.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-socials a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Copyright */
.footer-copy {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* ================= OFFCANVAS SOCIAL ================= */

.offcanvas-social {
    display: flex;
    gap: 1.25rem;
    justify-content: center;

    margin-top: 1.75rem;
    padding-top: 1.25rem;

    border-top: 1px solid var(--border-subtle);
}

.offcanvas-social a {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.25s ease, transform 0.2s ease;
}

.offcanvas-social a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}
