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

html {
    scroll-behavior: smooth;
}

body {
    background: #d9d5cc;
    color: #151515;
    font-family: Georgia, "Times New Roman", serif;
}


/* =====================================================
   READER HEADER
===================================================== */

.reader-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #111;
    color: white;

    border-bottom: 1px solid #333;
}

.reader-header-inner {
    max-width: 1400px;
    margin: auto;

    min-height: 58px;

    padding: 0 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button,
.contents-button {
    color: white;

    background: none;
    border: none;

    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;

    cursor: pointer;
}

/* =====================================================
   READER BRAND LOGO
===================================================== */

.reader-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
}

.reader-brand img {
    width: 230px;
    max-width: 42vw;
    height: auto;
    display: block;
    object-fit: contain;
}


/* =====================================================
   LOADING LOGO
===================================================== */

.loading-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

.loading-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
}


/* =====================================================
   NEWSPAPER PAGE BRAND
===================================================== */

.page-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
}

.page-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}



/* =====================================================
   READER
===================================================== */

.reader {
    min-height: calc(100vh - 58px);

    padding: 35px 20px 60px;
}


/* =====================================================
   LOADING
===================================================== */

.loading {
    min-height: 70vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;
}

.loading-title {
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 3px;
}

.loading p {
    margin-top: 10px;

    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #666;
}


/* =====================================================
   ERROR
===================================================== */

.error {
    max-width: 700px;

    margin: 100px auto;

    padding: 50px;

    background: #fff;

    text-align: center;

    border: 1px solid #ccc;
}

.error h2 {
    font-size: 30px;
}

.error p {
    margin-top: 15px;

    font-family: Arial, sans-serif;
    color: #666;
}


/* =====================================================
   NEWSPAPER PAGE
===================================================== */

.newspaper-page {
    width: min(1100px, 100%);

    min-height: 1350px;

    margin: auto;

    padding: 35px 45px;

    background: #fdfcf8;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.18);

    display: flex;
    flex-direction: column;
}


/* =====================================================
   PAGE HEADER
===================================================== */

.page-header {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 20px;

    padding-bottom: 12px;

    border-bottom: 1px solid #222;

    font-family: Arial, sans-serif;

    font-size: 9px;

    letter-spacing: 1.5px;
}

.page-header div:nth-child(2) {
    text-align: center;
    font-weight: bold;
}

.page-header div:last-child {
    text-align: right;
}


/* =====================================================
   PAGE CONTENT
===================================================== */

.page-content {
    flex: 1;

    padding: 35px 0;
}


/* =====================================================
   PAGE FOOTER
===================================================== */

.page-footer {
    display: flex;

    justify-content: space-between;

    border-top: 3px double #222;

    padding-top: 10px;

    font-family: Arial, sans-serif;

    font-size: 9px;

    letter-spacing: 1.5px;
}


/* =====================================================
   COVER
===================================================== */

.cover-page {
    min-height: 1200px;

    display: flex;
    flex-direction: column;
}

.cover-kicker {
    font-family: Arial, sans-serif;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.cover-page h1 {
    max-width: 950px;

    margin-top: 25px;

    font-size: clamp(55px, 8vw, 100px);

    line-height: 0.92;

    letter-spacing: -2px;
}

.cover-deck {
    max-width: 750px;

    margin-top: 30px;

    font-size: 22px;

    line-height: 1.4;

    color: #555;
}

.cover-visual {
    flex: 1;

    min-height: 450px;

    margin: 45px 0;

    background:
        linear-gradient(
            135deg,
            #c6c1b7,
            #77736c
        );

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    color: white;

    font-family: Arial, sans-serif;

    font-size: 45px;

    font-weight: bold;

    letter-spacing: 4px;
}

.cover-meta {
    display: flex;

    justify-content: space-between;

    padding-top: 15px;

    border-top: 1px solid #222;

    font-family: Arial, sans-serif;

    font-size: 10px;

    letter-spacing: 2px;
}


/* =====================================================
   CONTENTS PAGE
===================================================== */

.contents-page h1 {
    font-size: 75px;

    line-height: 1;

    margin: 10px 0 20px;
}

.page-kicker,
.section-kicker {
    font-family: Arial, sans-serif;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 3px;
}

.contents-intro {
    max-width: 700px;

    font-size: 17px;

    color: #666;

    margin-bottom: 45px;
}

.contents-table {
    border-top: 3px double #111;
}

.contents-row {
    display: grid;

    grid-template-columns:
        70px
        250px
        1fr;

    gap: 20px;

    padding: 22px 0;

    border-bottom: 1px solid #aaa;
}

.contents-page-number {
    font-family: Arial, sans-serif;

    font-size: 13px;

    font-weight: bold;
}

.contents-section-name {
    font-size: 25px;

    font-weight: bold;
}

.contents-articles {
    font-family: Arial, sans-serif;

    font-size: 12px;

    color: #666;
}

.contents-articles div {
    margin-bottom: 5px;
}


/* =====================================================
   SECTION PAGE
===================================================== */

.section-kicker {
    margin-bottom: 10px;
}

.section-page h1 {
    font-size: 70px;

    line-height: 1;

    margin-bottom: 20px;
}

.section-rule {
    border-top: 5px double #111;

    margin-bottom: 40px;
}

.section-articles {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 35px;
}

.newspaper-article {
    padding-bottom: 30px;

    border-bottom: 1px solid #aaa;
}

.newspaper-article:nth-child(odd) {
    padding-right: 30px;

    border-right: 1px solid #aaa;
}

.newspaper-article:nth-child(even) {
    padding-left: 0;
}

.newspaper-article.lead-article {
    grid-column: 1 / -1;

    border-right: none;

    padding-right: 0;

    padding-bottom: 40px;

    border-bottom: 3px double #222;
}

.article-category {
    font-family: Arial, sans-serif;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.newspaper-article h2 {
    font-size: 34px;

    line-height: 1.05;

    margin: 12px 0 15px;
}

.lead-article h2 {
    font-size: 52px;

    max-width: 850px;
}

.article-summary {
    font-family: Arial, sans-serif;

    font-size: 14px;

    line-height: 1.65;

    color: #555;
}

.article-meta {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-top: 20px;

    padding-top: 12px;

    border-top: 1px solid #ccc;

    font-family: Arial, sans-serif;

    font-size: 9px;

    color: #777;

    letter-spacing: 0.5px;
}

.newspaper-article a {
    display: inline-block;

    margin-top: 15px;

    color: #111;

    font-family: Arial, sans-serif;

    font-size: 10px;

    font-weight: bold;

    text-decoration: none;

    letter-spacing: 1px;
}

.newspaper-article a:hover {
    text-decoration: underline;
}


/* =====================================================
   EMPTY
===================================================== */

.empty-page,
.empty-section {
    min-height: 500px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;
}

.empty-page h1,
.empty-section h3 {
    margin-top: 15px;

    font-size: 45px;
}

.empty-page p,
.empty-section p {
    margin-top: 15px;

    font-family: Arial, sans-serif;

    color: #666;
}


/* =====================================================
   READER CONTROLS
===================================================== */

.reader-controls {
    width: min(1100px, 100%);

    margin: 20px auto 0;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.reader-controls button {
    min-width: 130px;

    padding: 13px 18px;

    background: #111;

    color: white;

    border: none;

    cursor: pointer;

    font-family: Arial, sans-serif;

    font-size: 10px;

    letter-spacing: 1.5px;
}

.reader-controls button:hover {
    background: #333;
}

.reader-controls button:disabled {
    opacity: 0.25;

    cursor: not-allowed;
}

.page-indicator {
    font-family: Arial, sans-serif;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;
}


/* =====================================================
   CONTENTS PANEL
===================================================== */

.contents-panel {
    position: fixed;

    z-index: 2000;

    top: 0;
    right: -420px;

    width: min(420px, 90vw);

    height: 100vh;

    background: #111;

    color: white;

    transition: right 0.3s ease;

    overflow-y: auto;
}

.contents-panel.open {
    right: 0;
}

.contents-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 25px;

    border-bottom: 1px solid #444;
}

.contents-header h2 {
    font-size: 20px;

    letter-spacing: 2px;
}

.contents-header button {
    background: none;

    border: none;

    color: white;

    font-size: 30px;

    cursor: pointer;
}

.contents-list {
    padding: 10px 0;
}

.contents-item {
    width: 100%;

    display: grid;

    grid-template-columns: 55px 1fr;

    gap: 10px;

    padding: 18px 25px;

    text-align: left;

    border: none;

    border-bottom: 1px solid #333;

    background: transparent;

    color: white;

    cursor: pointer;
}

.contents-item:hover {
    background: #222;
}

.contents-item span {
    font-family: Arial, sans-serif;

    font-size: 10px;

    opacity: 0.5;
}

.contents-item strong {
    font-family: Georgia, serif;

    font-size: 16px;
}


/* =====================================================
   OVERLAY
===================================================== */

.overlay {
    position: fixed;

    z-index: 1500;

    inset: 0;

    background: rgba(0, 0, 0, 0.5);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 800px) {

    .reader {
        padding: 15px 0 40px;
    }

    .reader-brand img {
        width: 195px;
        max-width: 38vw;
    }

    .loading-logo img {
        width: 76px;
        height: 76px;
    }

    .page-brand img {
        width: 30px;
        height: 30px;
    }

    .newspaper-page {
        min-height: calc(100vh - 110px);

        padding: 25px 22px;

        box-shadow: none;
    }

    .page-header {
        grid-template-columns: 1fr 1fr;
    }

    .page-header div:nth-child(2) {
        display: none;
    }

    .page-header div:last-child {
        text-align: right;
    }

    .cover-page {
        min-height: calc(100vh - 180px);
    }

    .cover-page h1 {
        font-size: 52px;
    }

    .cover-deck {
        font-size: 17px;
    }

    .cover-visual {
        min-height: 280px;

        font-size: 30px;
    }

    .contents-page h1,
    .section-page h1 {
        font-size: 48px;
    }

    .contents-row {
        grid-template-columns:
            45px
            1fr;
    }

    .contents-articles {
        grid-column: 2;
    }

    .section-articles {
        grid-template-columns: 1fr;
    }

    .newspaper-article:nth-child(odd) {
        padding-right: 0;

        border-right: none;
    }

    .lead-article h2 {
        font-size: 38px;
    }

}


@media (max-width: 500px) {

    .reader-header-inner {
        padding: 0 15px;
    }

    .reader-brand img {
        width: 165px;
        max-width: 48vw;
    }

    .loading-logo {
        margin-bottom: 16px;
    }

    .loading-logo img {
        width: 64px;
        height: 64px;
    }

    .page-brand img {
        width: 26px;
        height: 26px;
    }

    .back-button,
    .contents-button {
        font-size: 9px;
    }

    .page-header {
        font-size: 8px;
    }

    .newspaper-page {
        padding: 20px 16px;
    }

    .cover-page h1 {
        font-size: 43px;
    }

    .cover-visual {
        min-height: 220px;
    }

    .reader-controls button {
        min-width: auto;

        padding: 11px 10px;

        font-size: 8px;
    }

}