/* Минималистичный стиль, вдохновлённый scott2.neocities.org */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f9f5f0; /* очень светлый бежевый, почти белый */
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #1a1a1a; /* очень тёмный, почти чёрный */
    padding: 20px;
}

.page {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff; /* чисто белый фон для контента */
    padding: 40px;
    border: 1px solid #e0d6cc; /* тонкая рамка цвета старой бумаги */
}

/* Типографика */
h1, h2, h3, .comic-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: normal;
    color: #3b2b1f; /* ваш тёмно-коричневый */
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #9fb7c9; /* голубая линия */
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: #4d3422;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Ссылки в классическом синем цвете */
a {
    color: #0000ee;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #551a8b; /* классический фиолетовый для посещённых */
}

/* Навигационное меню (пример для главной) */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 30px 0 20px;
    padding: 20px 0;
    border-top: 1px solid #e0d6cc;
    border-bottom: 1px solid #e0d6cc;
}

.nav-menu a {
    background-color: transparent;
    padding: 5px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #3b2b1f;
    border: none;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
    background-color: transparent;
    transform: none;
    box-shadow: none;
    border-bottom-color: #9fb7c9;
    text-decoration: none;
}

/* Карточка комикса в стиле "проектов" с целевого сайта */
.comic-card {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid #e0d6cc;
    border-bottom: 1px solid #e0d6cc;
}

.comic-cover {
    flex-shrink: 0;
    width: 150px;
    height: 200px;
    background-color: #e8e0d5;
    border: 1px solid #cbbaa8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b5a48;
    font-size: 1rem;
}

.comic-info {
    flex: 1;
}

.comic-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #2c4d66; /* тёмно-голубой */
    border-bottom: none;
    display: inline-block;
    margin-bottom: 10px;
}

.comic-description {
    font-size: 1.1rem;
    color: #333;
}

/* Стиль для вступления на странице комиксов */
.comics-intro {
    margin: 20px 0 30px;
    padding: 20px;
    background-color: #f9f5f0;
    border-left: 5px solid #9fb7c9;
}

.comics-intro h2 {
    margin-top: 0;
    color: #4d3422;
    border-bottom: 1px dashed #9fb7c9;
    padding-bottom: 5px;
}

/* Заглушки разделов */
.coming-soon {
    text-align: left;
    color: #666;
    background: #f9f5f0;
    padding: 30px;
    border: 1px dashed #9fb7c9;
    margin: 30px 0;
}

/* Ссылка "назад" */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #0000ee;
}

/* Адаптивность */
@media (max-width: 700px) {
    .page { padding: 20px; }
    h1 { font-size: 2.5rem; }
    .comic-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .comic-cover { width: 200px; height: 260px; }
}
.menu-icon {
    width: 40px;          /* подберите нужный размер */
    height: 30px;
    border-radius: 8px;    /* скругление углов */
    object-fit: cover;     /* чтобы картинка не искажалась */
    vertical-align: middle; /* выравнивание по центру текста */
    margin-right: 8px;      /* отступ от текста */
    border: 1px solid #c6b2a0; /* лёгкая рамка (по желанию) */
}
/* Макет страницы глав комикса - две колонки */
.comic-chapters-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    position: relative;
}

/* Левая колонка с фиксированной шириной */
.chapters-sidebar {
    flex: 0 0 260px; /* фиксированная ширина 260px */
    position: relative;
}

/* Коробка со списком глав */
.chapters-box {
    background-color: #f5ede1;
    border: 2px solid #c6b2a0;
    padding: 20px 15px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    
    /* === ОРНАМЕНТ ИЗ КАРТИНОК === */
    /* Пример 1: орнамент через border-image (есть готовая картинка) */
    /* border-image: url('ornament.png') 30 round; */
    
    /* Пример 2: фоновая картинка с паттерном (проще всего) */
    background-image: url('ornament-bg.png'), linear-gradient(#f5ede1, #f5ede1);
    background-repeat: repeat;
    background-size: 50px 50px; /* подгоните под размер вашего орнамента */
    background-blend-mode: overlay; /* чтобы фон просвечивал */
    
    /* Пример 3: отдельные картинки по углам (если нужны только углы) */
    /* 
    position: relative;
    &::before, &::after { content: ""; position: absolute; width: 40px; height: 40px; }
    &::before { top: -10px; left: -10px; background: url('corner1.png'); }
    &::after { bottom: -10px; right: -10px; background: url('corner2.png'); }
    */
}

/* Заголовок внутри коробки */
.chapters-title {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    color: #4d3422;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9fb7c9;
    text-align: center;
}

/* Список глав */
.chapters-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-link {
    display: block;
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid #dac9bb;
    border-radius: 30px;
    color: #3b2b1f;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.chapter-link:hover {
    background-color: #dac9bb;
    border-color: #9fb7c9;
    transform: translateX(5px);
}

.chapter-link:focus-visible {
    outline: 3px solid #7f9fb5;
    outline-offset: 2px;
}

/* Основная область контента */
.chapter-content {
    flex: 1;
    min-width: 0; /* для корректного сжатия */
}

.chapter-main-title {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 3px solid #9fb7c9;
    display: inline-block;
}

/* Адаптация для мобильных */
@media (max-width: 700px) {
    .comic-chapters-layout {
        flex-direction: column;
    }
    
    .chapters-sidebar {
        flex: none;
        width: 100%;
    }
    
    .chapter-link:hover {
        transform: none;
    }
}
/* Заголовок главы по центру */
.chapter-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 20px 0 30px;
    border-bottom: none; /* убираем нижнюю границу, если была */
    display: block; /* переопределяем возможный inline-block */
}

/* Контейнер для страницы комикса с рамкой */
.comic-frame {
    max-width: 1000px; /* почти на всю ширину, но можно регулировать */
    margin: 0 auto; /* центрирование */
    padding: 20px; /* пространство для рамки */
    background: #f5ede1; /* базовый фон, если рамка не перекроет */
    /* Здесь пользователь вставит своё PNG-изображение рамки */
    /* Например: */
    /* background-image: url('frame.png'); */
    /* background-repeat: repeat; */
    /* background-size: 100px 100px; */
    border: 2px solid #c6b2a0; /* временная граница, пока нет рамки */
    border-radius: 16px; /* можно скруглить */
}

/* Блок, непосредственно содержащий изображение страницы */
.comic-page {
    background-color: #ffffff; /* белый фон под картинку */
    min-height: 400px; /* высота до добавления контента */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #9fb7c9;
    padding: 20px;
}

/* Навигация по страницам */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 10px 0;
}

.nav-left, .nav-right {
    display: flex;
    gap: 20px;
}

.nav-placeholder {
    width: 100px; /* для симметрии, когда нет левой навигации */
}

.nav-arrow {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e8d9cc;
    color: #3b2b1f;
    text-decoration: none;
    border: 1px solid #c6b2a0;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.nav-arrow:hover {
    background-color: #dac9bb;
}

.nav-arrow:focus-visible {
    outline: 3px solid #7f9fb5;
    outline-offset: 2px;
}
.comic-frame {
    background-image: url('путь/к/вашей-рамке.png');
    background-repeat: repeat;        /* или no-repeat, если рамка цельная */
    background-size: 200px 200px;     /* подберите размер под ваш узор */
    border: none;                     /* убираем временную рамку */
    /* остальные стили (max-width, margin, padding) оставьте */
}