/* Blog page — subset aligned with index.html */

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

html {
    scroll-behavior: smooth;
}

:root {
    --dark-charcoal: #1a1a1a;
    --mist-gray: #f5f5f5;
    --blood-red: #8B0000;
    --shadow-gray: #666;
    --text-light: #888;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--dark-charcoal);
    background: white;
}

.skip-nav {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--blood-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    clip: rect(0, 0, 0, 0);
}

.skip-nav:focus {
    top: 0;
    clip: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero — paths relative to this CSS file */
.hero {
    background:
        linear-gradient(
            180deg,
            rgba(26, 26, 26, 0.25) 0%,
            rgba(26, 26, 26, 0.15) 50%,
            rgba(26, 26, 26, 0.35) 100%
        ),
        url('../images/shropshire-hills-dark.png') center/cover no-repeat;
    background:
        linear-gradient(
            180deg,
            rgba(26, 26, 26, 0.25) 0%,
            rgba(26, 26, 26, 0.15) 50%,
            rgba(26, 26, 26, 0.35) 100%
        ),
        image-set(
            url('../images/shropshire-hills-dark.webp') type('image/webp'),
            url('../images/shropshire-hills-dark.png') type('image/png')
        ) center/cover no-repeat;
    background-attachment: fixed;
    background-position: center center;
    color: white;
    padding: 120px 0 100px;
    min-height: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
    text-shadow:
        3px 3px 12px rgba(0, 0, 0, 1),
        1px 1px 4px rgba(0, 0, 0, 1),
        0px 0px 20px rgba(0, 0, 0, 0.9);
}

.hero .tagline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #f0f0f0;
    font-style: italic;
    position: relative;
    z-index: 2;
    text-shadow:
        2px 2px 10px rgba(0, 0, 0, 1),
        1px 1px 4px rgba(0, 0, 0, 1),
        0px 0px 15px rgba(0, 0, 0, 0.9);
}

/* Sticky navigation */
nav[role='navigation'] {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav.nav-minimal ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

nav.nav-minimal a {
    text-decoration: none;
    color: var(--dark-charcoal);
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
}

nav.nav-minimal a:hover {
    color: var(--blood-red);
}

/* Blog page section */
.blog-page-section {
    padding: 80px 0 100px;
    background: #faf3f2;
}

.blog-page-content {
    max-width: 1100px;
    margin-left: calc(max((100% - 1100px) / 2, 20px));
    margin-right: auto;
}

.blog-page-title {
    font-size: 2.5rem;
    color: var(--dark-charcoal);
    text-align: left;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.blog-page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--blood-red);
}

.blog-page-intro {
    text-align: left;
    color: var(--shadow-gray);
    max-width: 600px;
    margin: 0 0 50px 0;
    line-height: 1.6;
}

/* Blog page layout: feed + author sidebar */
.blog-page-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.blog-feed-col {
    flex: 1;
    min-width: 0;
}

.blog-sidebar {
    flex-shrink: 0;
    width: 280px;
    position: sticky;
    top: 100px;
    text-align: center;
}

.blog-sidebar-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    outline: 1px solid #e0e0e0;
    margin: 0 auto 16px;
    display: block;
}

.blog-sidebar-name {
    font-size: 1.2rem;
    color: var(--dark-charcoal);
    margin-bottom: 10px;
}

.blog-sidebar-bio {
    font-size: 0.9rem;
    color: var(--shadow-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-sidebar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blood-red);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    min-height: 44px;
    transition: background 0.3s;
}

.blog-sidebar-cta:hover {
    background: #6B0000;
}

/* Footer */
footer[role='contentinfo'] {
    background: #0a0a0a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: normal;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    width: 44px;
    height: 44px;
    background: var(--shadow-gray);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: background 0.3s, transform 0.2s;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-links a svg {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    background: var(--blood-red);
    transform: translateY(-2px);
}

.social-links a[href*='facebook'] {
    background: #1877f2;
}

.social-links a[href*='x.com'] {
    background: #000000;
}

.social-links a[href*='instagram'] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a[href*='tiktok'] {
    background: #000000;
}

.social-links a[href*='youtube'] {
    background: #ff0000;
}

.social-links a[href*='substack'] {
    background: #ff6719;
}

.social-links a[href*='goodreads'] {
    background: #553b08;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer-links a,
.footer-links .footer-link-button {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    padding: 8px 12px;
    display: inline-block;
    min-height: 44px;
    line-height: 28px;
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.footer-links a:hover,
.footer-links .footer-link-button:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(1.75rem, 5vw, 2rem);
    }

    .hero {
        background-attachment: scroll;
        min-height: clamp(300px, 50vh, 400px);
        padding: 80px 0 60px;
    }

    .blog-page-content {
        margin: 0 auto;
    }

    .blog-page-layout {
        flex-direction: column;
        gap: 40px;
    }

    .blog-sidebar {
        width: 100%;
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }

    nav.nav-minimal ul {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: clamp(280px, 45vh, 350px);
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 1.75rem);
        letter-spacing: 2px;
    }

    .hero .tagline {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    nav.nav-minimal ul {
        gap: 8px;
    }

    nav.nav-minimal a {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .blog-page-section {
        padding: 60px 0 70px;
    }

    .blog-page-title {
        font-size: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 900px;
    }

    .hero {
        min-height: 450px;
        padding: 100px 0 90px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 280px;
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    nav[role='navigation'] {
        padding: 15px 0;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
}
