/* --- 1. RESET & BASE --- */
* { box-sizing: border-box; }

html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }

:root {
    --bg-color: #ffffff;
    --text-main: #000000;
    --text-muted: #888888;
    --text-light: #bbbbbb;
    --border-color: #eeeeee;
    --max-width: 1000px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

/* --- 2. LAYOUT CONTAINERS --- */
/* Unified width and centering for ALL pages */
.site-header, 
.feed-container, 
.content-wrapper {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. HEADER & NAVIGATION (Right Aligned) --- */
.site-header {
    margin-top: 60px;
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-end;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-main);
    margin-bottom: 4px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
}

.nav-link {
    font-size: 0.75rem;
    text-decoration: none;
    color: var(--text-muted);
    text-transform: lowercase;
    transition: color 0.2s ease;
}

.nav-link:hover { color: var(--text-main); }

.nav-link:not(:last-child):after {
    content: "/";
    margin: 0 8px;
    color: #ccc;
    pointer-events: none;
}

/* --- 4. PAGE TITLES (Left Aligned) --- */
.page-title-area {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 60px;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1;
}

/* --- 5. IMAGE FEED (Homepage) --- */
.feed-container { display: flex; flex-direction: column; }

.post-box {
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    cursor: default;
}

/* --- 6. BLOG & ARCHIVE LISTS --- */
.blog-feed, .archive-container { width: 100%; }

.blog-item, .archive-entry {
    display: flex;
    margin-bottom: 60px;
    align-items: flex-start;
    gap: 25px;
}

/* Shared Thumbnail Style */
.archive-thumbnail { flex: 0 0 80px; }
.archive-thumbnail img, .no-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}
.no-thumb { background-color: #f9f9f9; }

/* Typography for Lists */
.blog-date, .archive-date, .post-date-meta {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-entry-title, .archive-entry-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 4px 0;
    color: var(--text-main);
    text-decoration: none;
}

.blog-summary, .archive-summary {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
    font-weight: 300;
}

.blog-link:hover { opacity: 0.6; }

/* --- 7. SINGLE POST CONTENT --- */
.post-body {
    width: 100%;
/*    max-width: 750px;*/
    line-height: 1.8;
    font-size: 1.1rem;
    color: #222;
}

.post-body p { margin-bottom: 2rem; }

/* Centered Images in Blog Posts */
.blog-image-container {
    width: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    margin: 4rem auto;
}

.blog-image-container img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s;
}

.blog-image-container img:hover { opacity: 0.9; }

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
}

/* --- 8. ARCHIVE SEARCH --- */
.archive-search-wrapper { margin-bottom: 50px; width: 100%; max-width: 400px; }

#archive-search {
    appearance: none; -webkit-appearance: none;
    background: transparent; border: none; border-bottom: 1px solid var(--border-color);
    width: 100%; padding: 12px 0; outline: none;
    font-family: inherit; font-size: 1rem;
    transition: border-color 0.3s ease;
}

#archive-search:focus { border-bottom-color: var(--text-main); }
#archive-search::placeholder { color: #ccc; }

/* --- 9. LIGHTBOX --- */
.lightbox {
    display: none; position: fixed; z-index: 1000;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center; justify-content: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- 10. CONTACT (SVG EMAIL) --- */
.email-svg-container {
    width: 100%;
    max-width: 550px;
}

.email-svg-container svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* --- 11. RESPONSIVENESS --- */
@media (max-width: 600px) {
    .blog-item, .archive-entry { flex-direction: column; gap: 15px; }
    /*.archive-thumbnail, .archive-thumbnail img { width: 100%; height: auto; }*/
    .site-header { margin-top: 30px; }
    .section-title { font-size: 0.7rem; }
}


