/* Рыленков — Времена года. Классическая литературная эстетика */

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-y: auto;
    background-color: #F5F0E8;
    background-image: radial-gradient(ellipse at 50% 0%, rgba(232, 226, 217, 0.5) 0%, transparent 60%);
}

body {
    margin: 0;
    position: relative;
    background-attachment: fixed;
    font-family: 'PT Serif', Georgia, serif;
}

#upper-right-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.4rem 0.6rem;
    color: #8B7355;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(139, 115, 85, 0.4);
    border-radius: 4px;
    background: rgba(250, 247, 242, 0.9);
    transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
    background-color: rgba(139, 115, 85, 0.12);
    color: #6B4E4E;
}

#backgroundContainer {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

#contentContainer {
    position: relative;
    width: 100%;
    min-height: 90vh;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    box-sizing: border-box;
}

#mainTitle {
    padding: 2rem 0 0.5rem;
    margin: 0;
    color: #3D3429;
    font-family: 'Playfair Display', 'PT Serif', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.02em;
}

.title-decorator {
    width: 48px;
    height: 2px;
    margin: 0 auto 1rem;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.5), transparent);
}

#mainTitle2 {
    padding: 0.5rem 0 0;
    margin: 0;
    color: #3D3429;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-transform: none;
}

/* Круглое фото */
#contentContainer #mainImage {
    display: block;
    width: 220px;
    height: 220px;
    margin: 2rem auto;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(139, 115, 85, 0.3);
    box-shadow: 0 8px 32px rgba(61, 52, 41, 0.12), 0 2px 8px rgba(61, 52, 41, 0.08);
}

@media (max-width: 480px) {
    #contentContainer #mainImage {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 360px) {
    #contentContainer #mainImage {
        width: 160px;
        height: 160px;
    }
}

/* Контейнер кнопок */
.main-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* Главная кнопка — Поэма Апрель */
.btn-poem {
    width: 100%;
    max-width: 320px;
    height: 56px;
    padding: 0 1.5rem;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background-color: #8B7355;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-poem:hover {
    background-color: #7A6549;
    transform: scale(1.02);
}

.btn-poem:active {
    transform: scale(0.98);
}

/* Вторичная кнопка — К содержанию */
.btn-secondary {
    width: 160px;
    height: 44px;
    padding: 0 1rem;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 0.95rem;
    color: #8B7355;
    background: transparent;
    border: 2px solid #8B7355;
    border-radius: 22px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(139, 115, 85, 0.08);
    color: #6B4E4E;
    transform: translateX(4px);
}

.btn-secondary:active {
    transform: translateX(2px);
}

#contentContainer #annotation,
#contentContainer #subText {
    margin-top: 1.5rem;
    padding: 0 1rem;
    color: #3D3429;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

@keyframes slideOut {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.animate {
    animation: slideOut 0.5s ease-out;
}
