/* =========================================================
   CODE OF SILENCE
   Homepage-specific styles

   Loaded AFTER style.css so these rules override the
   general dossier stylesheet without affecting chapter pages.
   ========================================================= */


/* ---------------------------------------------------------
   PAGE
   --------------------------------------------------------- */

body {
    margin: 0;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 30px;
}

.site-title {
    margin: 0;
    padding: 0;
}

.site-title a {
    text-decoration: none;
    opacity: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a {
    text-decoration: none;
    opacity: 1;
}


/* ---------------------------------------------------------
   MAIN HOMEPAGE AREA
   --------------------------------------------------------- */

main.wrap {
    position: relative;
    z-index: 1;

    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 30px 60px;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.home-hero {
    position: relative;

    width: 100%;
    margin: 0 auto 50px;
    padding: 0;

    text-align: center;
}


/* Splash image

   Most important rule:
   keep the image in normal document flow and prevent it
   from covering the header or extending beyond the page.
*/

.home-splash {
    position: static;

    display: block;

    width: 100%;
    max-width: 1100px;
    height: auto;

    margin: 0 auto 32px;

    object-fit: contain;
}


/* ---------------------------------------------------------
   HERO TEXT
   --------------------------------------------------------- */

.home-hero .eyebrow {
    margin-top: 0;
    margin-bottom: 12px;
}

.home-hero h1 {
    margin-top: 10px;
    margin-bottom: 15px;
}

.home-tagline {
    max-width: 760px;

    margin: 0 auto 26px;

    font-size: 1.15rem;
    line-height: 1.6;
}

.home-action {
    margin: 30px 0 0;
}


/* ---------------------------------------------------------
   BUTTON
   --------------------------------------------------------- */

.home-action .button {
    display: inline-block;

    padding: 12px 22px;

    text-decoration: none;
}


/* ---------------------------------------------------------
   CONTENTS
   --------------------------------------------------------- */

.dossier-section,
#contents {
    position: relative;

    max-width: 900px;

    margin: 50px auto 0;
    padding: 30px;
}

.section-heading {
    margin-bottom: 20px;
}

#contents h2 {
    margin-top: 0;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
    position: relative;
    z-index: 10;

    width: 100%;

    opacity: 1 !important;
    filter: none !important;
}

.site-footer .wrap {
    max-width: 1200px;

    margin: 0 auto;
    padding: 25px 30px;

    opacity: 1 !important;
}

.site-footer p,
.site-footer a,
.site-footer em {
    opacity: 1 !important;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .site-header .wrap {
        display: block;

        padding-left: 20px;
        padding-right: 20px;
    }

    .site-nav {
        flex-wrap: wrap;

        margin-top: 12px;
        gap: 12px 18px;
    }

    main.wrap {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-splash {
        width: 100%;
        margin-bottom: 24px;
    }

    .home-tagline {
        font-size: 1rem;
    }

    .dossier-section,
    #contents {
        padding: 22px 18px;
    }

}

/* =========================================================
   HOMEPAGE FILE INDEX
   ========================================================= */

.home-index {
    max-width: 900px;
    margin: 55px auto 70px;
    padding: 32px 36px;

    border: 1px solid rgba(70, 58, 42, 0.35);
    border-top: 4px solid rgba(110, 45, 38, 0.85);

    background: rgba(255, 250, 235, 0.35);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.10),
        inset 0 0 35px rgba(80, 65, 45, 0.04);
}


.index-heading {
    margin-bottom: 24px;
}


.index-label {
    display: block;

    margin-bottom: 5px;

    font-family: "Courier New", Courier, monospace;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.16em;

    opacity: 0.7;
}


.index-heading h2 {
    margin: 0;

    font-size: 2rem;
}


/* ---------------------------------------------------------
   CHAPTER ENTRY
   --------------------------------------------------------- */

.chapter-card {
    display: grid;

    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 22px;

    padding: 20px 22px;

    border-top: 1px solid rgba(70, 58, 42, 0.30);
    border-bottom: 1px solid rgba(70, 58, 42, 0.30);

    text-decoration: none;

    opacity: 1 !important;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}


.chapter-card:hover {
    transform: translateX(4px);

    background: rgba(110, 45, 38, 0.06);
}


.chapter-number {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.5rem;
    font-weight: bold;

    opacity: 0.55;
}


.chapter-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.chapter-details strong {
    font-size: 1.15rem;
}


.chapter-details small {
    font-size: 0.9rem;
    opacity: 0.7;
}


.chapter-arrow {
    font-size: 1.5rem;
}


/* =========================================================
   FOOTER — HOMEPAGE
   ========================================================= */

.site-footer {
    margin-top: 60px;

    border-top: 1px solid rgba(70, 58, 42, 0.35);

    opacity: 1 !important;
}


.site-footer .wrap {
    padding-top: 24px;
    padding-bottom: 28px;

    text-align: center;
}


.site-footer p {
    margin: 0;

    font-size: 0.9rem;
    letter-spacing: 0.04em;

    opacity: 0.75 !important;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .home-index {
        margin-top: 35px;
        padding: 24px 20px;
    }

    .chapter-card {
        grid-template-columns: 42px 1fr auto;
        gap: 12px;

        padding-left: 8px;
        padding-right: 8px;
    }

    .chapter-number {
        font-size: 1.2rem;
    }

}

/* =========================================================
   HOMEPAGE COLOR OVERRIDES
   ========================================================= */

body {
    background: #11110f;
    color: #e8dfc8;
}


/* Main homepage text */

main.wrap,
.home-hero,
.home-index {
    color: #e8dfc8;
}


/* Headings */

.home-hero h1,
.home-index h2 {
    color: #f0e6cc;
}


/* Normal text */

.home-tagline,
.home-index p,
.chapter-details small {
    color: #c8bea5;
}


/* Dossier labels */

.eyebrow,
.index-label {
    color: #a74b3c;
    opacity: 1;
}


/* Chapter card */

.chapter-card {
    color: #e8dfc8 !important;
    border-color: rgba(232, 223, 200, 0.28);
}

.chapter-card:visited {
    color: #e8dfc8 !important;
}

.chapter-number {
    color: #a74b3c;
    opacity: 1;
}

.chapter-details strong {
    color: #eee4cc;
}

.chapter-details small {
    color: #aaa18d;
    opacity: 1;
}

.chapter-arrow {
    color: #a74b3c;
}


/* Footer */

.site-footer {
    color: #aaa18d;
    border-top-color: rgba(232, 223, 200, 0.20);
}

.site-footer p,
.site-footer em {
    color: #aaa18d !important;
    opacity: 1 !important;
}


/* General homepage links */

main.wrap a {
    color: #d45a45;
}

main.wrap a:visited {
    color: #c85543;
}


/* Begin Story button */

.home-action .button {
    color: #d85a43 !important;
    border-color: #a83d2e;
}

.home-action .button:visited {
    color: #d85a43 !important;
}

.home-index,
.mobile-chapters-link {
    display: none;
}

.desktop-chapters-link {
    display: inline-block;
}

@media (max-width: 700px) {

    .home-index {
        display: block;
    }

    .desktop-chapters-link {
        display: none;
    }

    .mobile-chapters-link {
        display: inline-block;
    }
}
