body {
    margin: 0;
    min-height: 100vh;
    background-color: #4c7ea0;
    overflow-x: hidden;
    font-family: 'Merriweather', serif;
}

.back-button {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
}

.back-button:active {
    transform: scale(0.9);
}

.diario-wrapper {
    display: flex;
    justify-content: center;
    padding: 70px 15px 30px;
    box-sizing: border-box;
}

.diario-page {
    background-color: #ffffff;
    border-radius: 0%;
    width: 100%;
    max-width: 380px;
    padding: 22px 18px 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    color: #1a1a1a;
}

.section-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Merriweather', serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #444;
    text-transform: uppercase;
}

.masthead {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 2rem;
    color: #b03030;
    text-align: center;
    margin: 4px 0 6px;
    letter-spacing: 1px;
}

.date-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #444;
    text-transform: uppercase;
}

.divider {
    border: none;
    border-top: 3px solid #1a1a1a;
    margin: 8px 0 14px;
}

.divider-thin {
    border: none;
    border-top: 1px solid #ccc;
    margin: 16px 0;
}

.main-article {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.vertical-headline {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-headline h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 1.1;
    margin: 0;
    color: #1a1a1a;
    text-transform: uppercase;
}

.article-image-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
}

.image-caption {
    font-size: 0.6rem;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

.article-body {
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: justify;
    margin-top: 16px;
    color: #222;
}

.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 3rem;
    line-height: 0.8;
    padding-right: 6px;
    padding-top: 4px;
    color: #b03030;
}

.see-more {
    font-size: 0.75rem;
    font-style: italic;
    color: #555;
    margin-top: 8px;
}

.secondary-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.secondary-article h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.byline {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.secondary-article p:not(.byline) {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #333;
}

.sidebar-box {
    background-color: #f2f2f2;
    border-left: 4px solid #b03030;
    padding: 12px 14px;
    border-radius: 6px;
}

.sidebar-box h4 {
    font-family: 'Merriweather', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sidebar-box ul {
    margin: 0;
    padding-left: 18px;
}

.sidebar-box li {
    font-size: 0.75rem;
    margin-bottom: 5px;
    color: #333;
}

@media (min-width: 576px) {
    .diario-page {
        max-width: 440px;
        padding: 28px 24px 36px;
    }
    .masthead {
        font-size: 2.3rem;
    }
    .vertical-headline h2 {
        font-size: 1.9rem;
    }
}

@media (min-width: 992px) {
    .diario-page {
        max-width: 500px;
    }
}