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

:root {
    --lagoon-deep: #006d77;
    --deep-cyan: #004d54;
    --lagoon-bright: #40e0d0;
    --warm-white: #f7f5f2;
    --pure-white: #ffffff;
    --near-black: #1a1a1a;
    --text-dark: #2d3a3a;
    --text-mid: #4a5568;
    --gold-subtle: #c9a86c;
    --gray-light: #e5e5e5;
    --teal-elegant: #2a7d7d;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #dddbd8;
    color: var(--near-black);
}

/* Outer frame */
.blog-frame {
    display: flex;
    min-height: 100vh;
}

/* Fixed Sidebar - Gradient */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border: 1px solid var(--near-black);
    border-left: none;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to bottom, var(--deep-cyan) 0%, #4a9a9a 100%);
}

/* Top section */
.sidebar-top {
    padding: 0 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Greek Key Corner - Top Left */
.greek-key-corner {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.greek-key-corner svg {
    display: block;
}

/* Profile Photo */
.profile-wrapper {
    margin-top: 70px;
    margin-bottom: 0;
    position: relative;
}

.profile-photo,
.profile-placeholder {
    width: 125px;
    height: 125px;
    object-fit: cover;
    border: 2px solid var(--near-black);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 42px;
    font-family: 'Cormorant Garamond', serif;
}

.profile-photo.circle,
.profile-placeholder.circle {
    border-radius: 50%;
}

.profile-photo.panoramic,
.profile-placeholder.panoramic {
    width: 180px;
    height: 100px;
}

/* Teal Greek Key on Photo */
.photo-greek-key {
    position: absolute;
    bottom: -12px;
    right: -12px;
    pointer-events: none;
}

/* Bottom section */
.sidebar-bottom {
    flex: 1;
    padding: 25px 30px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--pure-white);
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 0.5px;
    text-decoration: none;
}

a.author-name:hover {
    color: var(--lagoon-bright);
}

.author-bio {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    line-height: 1.6;
    max-width: 210px;
}

/* Extra text area */
.extra-text {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    width: 100%;
    max-width: 210px;
}

.extra-text p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    line-height: 1.6;
    font-style: italic;
}

/* Footer link */
.sidebar-footer {
    margin-top: auto;
    text-align: center;
}

.site-link {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.site-link:hover {
    color: var(--lagoon-bright);
}

.site-link svg {
    width: 16px;
    height: 16px;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    background: var(--warm-white);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--near-black);
    border-left: none;
    position: relative;
    overflow: hidden;
}

/* Top shadow - matches sidebar shadow */
.main-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
    pointer-events: none;
}

/* Banner */
.page-banner {
    width: 100%;
    border-bottom: 1px solid var(--near-black);
}

.page-banner-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #8fa8ab 0%, #7a9598 50%, #6b8688 100%);
    display: block;
}

/* Top bar - Search + Newsletter */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    border-bottom: 1px solid var(--gray-light);
}

.search-bar input {
    width: 240px;
    padding: 10px 14px;
    border: 1px solid var(--gray-light);
    background: var(--pure-white);
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--near-black);
}

.search-bar input::placeholder {
    color: #a0a0a0;
}

/* Newsletter */
.newsletter-inline {
    background: var(--lagoon-deep);
    border: 1px solid var(--near-black);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.newsletter-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--near-black);
    text-align: center;
}

.newsletter-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.newsletter-inline input {
    padding: 6px 8px;
    border: 1px solid var(--near-black);
    border-right: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    width: 100px;
    background: var(--pure-white);
}

.newsletter-inline input:focus {
    outline: none;
}

.newsletter-inline input::placeholder {
    color: #a0a0a0;
}

.newsletter-inline button {
    padding: 6px 10px;
    border: 1px solid var(--near-black);
    background: var(--near-black);
    color: var(--pure-white);
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-inline button:hover {
    background: #333;
}

/* Content area */
.content-area {
    padding: 40px 50px;
    flex: 1;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--near-black);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--text-mid);
    font-weight: 400;
}

/* Featured Post */
.featured-post {
    margin-bottom: 45px;
    padding-bottom: 45px;
    border-bottom: 1px solid var(--gray-light);
}

.featured-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-subtle);
    margin-bottom: 15px;
}

.featured-post .post-image-placeholder,
.featured-post .post-image {
    width: 100%;
    height: 260px;
    margin-bottom: 18px;
    object-fit: cover;
}

.featured-post .post-image-placeholder {
    background: linear-gradient(145deg, #ccd6d8 0%, #b8c4c7 100%);
}

.featured-post .post-title {
    font-size: 1.9rem;
}

.featured-post .post-excerpt {
    font-size: 0.95rem;
    max-width: 580px;
}

/* Posts Grid */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.post-card {
    display: flex;
    gap: 25px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-light);
}

.post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-image-placeholder,
.post-image {
    flex-shrink: 0;
    width: 190px;
    height: 140px;
    object-fit: cover;
}

.post-image-placeholder {
    background: linear-gradient(145deg, #ccd6d8 0%, #b8c4c7 100%);
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-size: 0.78rem;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.post-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--near-black);
    margin-bottom: 8px;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.post-title:hover {
    color: var(--lagoon-deep);
}

.post-excerpt {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.55;
    flex: 1;
}

.read-more {
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lagoon-deep);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
    cursor: pointer;
}

.read-more:hover {
    gap: 9px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-light);
}

.pagination a,
.pagination span {
    padding: 8px 13px;
    font-size: 0.82rem;
    text-decoration: none;
    color: var(--text-mid);
    border: 1px solid var(--gray-light);
    transition: all 0.2s ease;
}

.pagination a:hover {
    border-color: var(--near-black);
    color: var(--near-black);
}

.pagination .current {
    background: var(--near-black);
    color: white;
    border-color: var(--near-black);
}

.pagination .disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Single Post Styles */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-mid);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 35px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.back-link:hover {
    color: var(--lagoon-deep);
    gap: 12px;
}

.article-header {
    margin-bottom: 35px;
}

.article-meta {
    font-size: 0.82rem;
    color: var(--text-mid);
    margin-bottom: 12px;
}

.article-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--near-black);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Article Body */
.article-body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1.5em;
}

.article-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--near-black);
    margin-top: 2.5em;
    margin-bottom: 0.8em;
}

.article-body blockquote {
    border-left: 3px solid var(--gold-subtle);
    padding-left: 22px;
    margin: 2em 0;
    font-style: italic;
    color: var(--text-mid);
}

.article-body em {
    font-style: italic;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}

.article-footer {
    margin-top: 55px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-light);
}

.article-footer .back-link {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .blog-frame {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: column;
        border: 1px solid var(--near-black);
        border-bottom: 1px solid var(--near-black);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }

    .sidebar-top {
        padding: 0 25px 20px;
    }

    .profile-wrapper {
        margin-top: 50px;
    }

    .sidebar-bottom {
        padding: 20px 25px 30px;
    }

    .main-content {
        margin-left: 0;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .search-bar input {
        width: 100%;
    }

    .newsletter-inline {
        width: 100%;
    }

    .newsletter-inline input {
        flex: 1;
    }

    .content-area {
        padding: 30px 20px;
    }

    .post-card {
        flex-direction: column;
        gap: 15px;
    }

    .post-image-placeholder,
    .post-image {
        width: 100%;
        height: 170px;
    }

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

    .featured-post .post-title {
        font-size: 1.5rem;
    }

    .greek-key-corner svg {
        width: 140px;
        height: 140px;
    }

    .article-title {
        font-size: 1.9rem;
    }

    .article-body {
        font-size: 0.95rem;
    }
}
