/* ============================================
   Streaming Sunsets — Global Stylesheet
   Color palette derived from logo:
   - Olive green:  #7A8B5C
   - Sky blue:     #A8D5E2
   - Cream:        #F2E6C9
   - Sunset orange: #E8933B
   - Warm pink:    #C93756
   - Dark text:    #2D2D2D
   - Light bg:     #F0EFEB
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather', Georgia, serif;
    color: #2D2D2D;
    background-color: #F0EFEB;
    line-height: 1.7;
}

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

a {
    color: #7A8B5C;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #E8933B;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #2D2D2D;
}

h1 { font-size: 2.4rem; margin-bottom: 0.5em; }
h2 { font-size: 1.8rem; margin-bottom: 0.4em; }
h3 { font-size: 1.3rem; margin-bottom: 0.3em; }

p {
    margin-bottom: 1em;
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header / Navigation --- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.site-logo img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
}

/* Homepage: header sits inside the hero wrapper, spanning full height */
.home-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    padding: 0;
    display: block; /* override site-header flex */
    /* Dark gradient behind nav for readability */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        transparent 25%
    );
}

/* Logo: vertically centered in the hero, slightly in from the left */
.home-header .site-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 4rem;
}

.home-header .site-logo img {
    width: 480px;
    height: 480px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

/* Nav: pinned to the top right */
.home-header .site-nav {
    position: absolute;
    top: 1.2rem;
    right: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

/* White nav text on homepage (over hero image) */
.home-header .site-nav a {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.home-header .site-nav a:hover,
.home-header .site-nav a.active {
    color: #F2E6C9;
    border-bottom-color: #F2E6C9;
}

.home-header .social-links a {
    color: #fff;
    font-size: 1.3rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.home-header .social-links a:hover {
    color: #F2E6C9;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.site-nav a {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2D2D2D;
    text-transform: none;
    letter-spacing: 0.03em;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #7A8B5C;
    border-bottom-color: #7A8B5C;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-left: 1rem;
}

.social-links a {
    color: #2D2D2D;
    font-size: 1.1rem;
}

.social-links a:hover {
    color: #7A8B5C;
}

/* --- Hero Section --- */
.hero-wrapper {
    position: relative;
}

.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin-bottom: 3rem;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 50%
    );
}

.hero-text {
    position: relative;
    z-index: 1;
    padding: 2rem 3rem;
}

.hero-text h1 {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

/* --- Blog Post Cards --- */
.blog-section {
    padding: 2rem 0 4rem;
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7A8B5C;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;  /* needed for the full-card link trick */
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(122, 139, 92, 0.55);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.3rem 1.5rem;
}

.blog-card-date {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.blog-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* The title link stretches invisibly over the whole card,
   making the entire card clickable without nesting <a> inside <a> */
.blog-card-body h3 a {
    color: #2D2D2D;
}

.blog-card-body h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.blog-card-body h3 a:hover {
    color: #7A8B5C;
}

.blog-card-excerpt {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* --- Page Content (interior pages) --- */
.page-content {
    padding: 3rem 0 4rem;
}

.page-title {
    text-align: center;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    text-align: center;
    font-family: 'Merriweather', Georgia, serif;
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

/* --- Travels Page --- */
.travels-section {
    margin-bottom: 3rem;
}

.travels-section h2 {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #7A8B5C;
}

.travels-section h3 {
    color: #7A8B5C;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.travels-list {
    font-family: 'Merriweather', Georgia, serif;
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.travels-list li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.travels-map {
    max-width: 500px;
    margin: 1rem auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- Stickers Page --- */
.sticker-photo {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* --- About Page --- */
.about-photo {
    max-width: 500px;
    margin: 0 auto 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.about-text {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
}

.about-text h2 {
    margin-bottom: 1rem;
}

/* --- Lists Page --- */
.list-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.list-card h3 {
    color: #7A8B5C;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.list-card ol {
    font-family: 'Merriweather', Georgia, serif;
    padding-left: 1.5rem;
}

.list-card ol li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #ddd;
    margin-top: 2rem;
}

.site-footer nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
}

.site-footer nav a {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2D2D2D;
}

.site-footer nav a:hover {
    color: #7A8B5C;
}

.site-footer .copyright {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.8rem;
    color: #999;
}

/* --- Single Post Page --- */
.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.post-date {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-featured-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 1.2em;
}

.post-body img {
    border-radius: 6px;
    margin: 1.5rem 0;
    width: 100%;
}

.post-body figure {
    margin: 1.5rem 0;
}

.post-body figure img {
    margin: 0;
    border-radius: 6px 6px 0 0;
}

.post-body figcaption {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    text-align: center;
    padding: 0.5rem 1rem;
    background: #f5f5f3;
    border-radius: 0 0 6px 6px;
    font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .site-logo img {
        width: 120px;
        height: 120px;
    }

    /* Homepage hero: logo top-left, nav centered at bottom */
    .home-header .site-logo {
        top: 1.5rem;
        left: 1.5rem;
        transform: none;
    }

    .home-header .site-logo img {
        width: 160px;
        height: 160px;
    }

    .home-header .site-nav {
        top: auto;
        right: auto;
        bottom: 1.2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        justify-content: center;
        gap: 0.7rem;
    }

    .home-header .site-nav a {
        font-size: 0.85rem;
    }

    .site-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        height: 420px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .container, .container-narrow {
        padding: 0 1rem;
    }

    /* Prevent fixed-width photos from overflowing on narrow screens */
    .sticker-photo,
    .about-photo {
        max-width: 100%;
    }
}
