
/* =========================================
   EXPLORER'S ARCHIVE
   CRYPTID TABLE OF CONTENTS

   SINGLE CENTERED PARCHMENT
   COMPLETE STYLESHEET
========================================= */

/* PAGE */

.cryptids-index-page {
    overflow-x: hidden;
}

.cryptids-brand {
    text-decoration: none;
}

.cryptids-main {
    width: 100%;
}

/* =========================================
   BREADCRUMB NAVIGATION
========================================= */

.cryptids-breadcrumb {
    width: 94%;
    max-width: 1420px;
    margin: 35px auto 25px;

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

.cryptids-breadcrumb a,
.cryptids-footer a {
    color: #f0d5a2;
    text-decoration: none;

    font-family: "Carter One", Georgia, serif;
    font-size: clamp(17px, 1.8vw, 24px);

    text-shadow: 2px 3px 4px rgba(0,0,0,.55);
}

.cryptids-breadcrumb a:hover,
.cryptids-footer a:hover {
    color: #e8b640;
}

.cryptids-breadcrumb span {
    color: #d9b98a;

    font-family: "Typewriter", Georgia, serif;
    font-size: clamp(12px, 1.3vw, 17px);
}

/* =========================================
   PAGE HEADING
========================================= */

.cryptids-heading {
    width: 92%;
    max-width: 1000px;
    margin: 15px auto 35px;
    text-align: center;
}

.cryptids-heading h2 {
    font-family: "Carter One", Georgia, serif;
    font-size: clamp(48px, 6vw, 86px);

    color: #f0d5a2;

    -webkit-text-stroke: .8px #000;

    text-shadow:
        3px 5px 7px rgba(0,0,0,.6);

    margin: 0 0 8px;
}

.cryptids-heading > p {
    font-family: Georgia, serif;
    font-size: clamp(17px, 1.8vw, 22px);

    line-height: 1.5;
    color: #eed8b2;

    margin: 0;
}

/* =========================================
   SINGLE CENTERED PARCHMENT
========================================= */

.parchment-index {
    width: 94%;
    max-width: 1450px;

    margin: 45px auto 65px;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.index-sheet {
    position: relative;
    min-width: 0;

    filter: drop-shadow(
        11px 17px 13px rgba(0,0,0,.48)
    );
}

.index-sheet.sheet-center {
    width: min(100%, 850px);
    aspect-ratio: 0.75;

    transform: rotate(-1deg);
}

/* PARCHMENT IMAGE */

.sheet-art {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

/* =========================================
   PARCHMENT CONTENT
========================================= */

.sheet-content {
    position: absolute;
    inset: 9% 10% 10%;

    color: #49311f;
    text-align: left;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #a88a62 transparent;
}

.sheet-content::-webkit-scrollbar {
    width: 7px;
}

.sheet-content::-webkit-scrollbar-track {
    background: transparent;
}

.sheet-content::-webkit-scrollbar-thumb {
    background: rgba(133, 99, 61, .5);
    border-radius: 10px;
}

/* PARCHMENT HEADING */

.sheet-content h3 {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(36px, 5.2vw, 70px);

    line-height: 1;
    font-weight: normal;

    text-align: center;
    margin: 0 0 .3em;
}

/* GENERAL PARCHMENT TEXT */

.sheet-content p {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(25px, 2.75vw, 39px);

    line-height: 1.12;
    margin: 0 0 .65em;
}

.sheet-content .sheet-intro {
    text-align: center;
}

/* =========================================
   ALPHABETICAL INDEX
========================================= */

.index-group {
    margin-top: 1.2em;
}

.letter-heading {
    font-size: clamp(34px, 4vw, 55px) !important;

    border-bottom: 1px solid rgba(89,58,36,.4);

    margin-bottom: .25em !important;
}

/* CASE LINKS */

.case-entry {
    display: flex;
    flex-direction: column;

    padding: .3em .35em .45em;

    border-radius: 4px;
    color: #49311f;
    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease;
}

.case-entry:hover,
.case-entry:focus-visible {
    background: rgba(129,93,51,.14);
    transform: translateX(4px);
    outline-offset: 2px;
}

.case-name {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(32px, 3.5vw, 49px);

    line-height: 1.08;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.case-location {
    font-family: "Typewriter", Georgia, serif;
    font-size: clamp(12px, 1.15vw, 17px);

    line-height: 1.3;
    margin-top: 6px;
}

/* LAST NOTE ON THE PARCHMENT */

.sheet-content .sheet-note {
    margin-top: 1.4em;

    font-size: clamp(23px, 2.35vw, 33px);
    font-style: italic;
}

/* =========================================
   SHARE YOUR ENCOUNTER
========================================= */

.share-encounter {
    width: 92%;
    max-width: 900px;

    margin: 55px auto 80px;
    text-align: center;
}

.share-encounter h2 {
    font-family: "Carter One", Georgia, serif;
    font-size: clamp(30px, 4vw, 52px);

    color: #f0d5a2;

    -webkit-text-stroke: .5px #000;

    text-shadow:
        2px 4px 5px rgba(0,0,0,.6);

    margin: 0 0 12px;
}

.share-encounter > p {
    font-family: Georgia, serif;
    font-size: clamp(17px, 1.8vw, 22px);

    line-height: 1.5;
    color: #ead1a8;

    margin: 0 0 15px;
}

/* ENVELOPE */

.share-envelope-wrap {
    width: min(64%, 380px);

    margin: 12px auto;

    transform: rotate(-4deg);

    filter: drop-shadow(
        9px 13px 9px rgba(0,0,0,.45)
    );
}

.share-envelope-image {
    display: block;
    width: 100%;
    height: auto;
}

.share-encounter .share-coming-soon {
    font-family: "Typewriter", Georgia, serif;
    font-size: 16px;

    color: #e8b640;
}

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

.cryptids-footer {
    margin: 55px auto 30px;
    text-align: center;
}

.cryptids-footer p {
    font-family: "Typewriter", Georgia, serif;
    font-size: 15px;

    color: #c9aa7d;
    margin-top: 20px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 800px) {

    .parchment-index {
        width: 96%;
        max-width: 600px;
    }

    .index-sheet.sheet-center {
        width: 100%;
        aspect-ratio: .78;
        transform: rotate(-1deg);
    }

    .sheet-content h3 {
        font-size: clamp(40px, 8vw, 65px);
    }

    .sheet-content p {
        font-size: clamp(25px, 5vw, 38px);
    }

    .case-name {
        font-size: clamp(33px, 6.5vw, 48px);
    }

    .case-location {
        font-size: clamp(13px, 2.6vw, 17px);
    }

    .sheet-content .sheet-note {
        font-size: clamp(24px, 4.5vw, 34px);
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .cryptids-breadcrumb {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .parchment-index {
        width: 98%;
    }

    .index-sheet.sheet-center {
        aspect-ratio: .7;
    }

    .sheet-content {
        inset: 9% 11% 10%;
    }

    .sheet-content h3 {
        font-size: clamp(34px, 9vw, 45px);
    }

    .sheet-content p {
        font-size: clamp(22px, 6vw, 29px);
    }

    .case-name {
        font-size: clamp(30px, 7.5vw, 38px);
    }

    .case-location {
        font-size: 12px;
    }

    .sheet-content .sheet-note {
        font-size: clamp(20px, 5.5vw, 27px);
    }

    .share-envelope-wrap {
        width: min(80%, 340px);
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .case-entry {
        transition: none;
    }
}

/* Neighbor archive labels: no decorative journals and no page-turn behavior. */
.archive-section-tabs {display:flex;justify-content:space-between;gap:24px;max-width:1100px;width:92%;margin:20px auto 30px;}
.archive-section-tab {display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:230px;min-height:105px;padding:18px 24px;background:url('Images/previous-next-tab.png') center/100% 100% no-repeat;color:#382415;text-decoration:none;font:400 clamp(20px,2.4vw,28px)/1.2 "Snake",Georgia,serif;text-align:center;}
.archive-section-arrow {display:block;font:26px/1.1 Georgia,serif;margin-top:6px;}
.archive-section-tab:hover {filter:brightness(1.08);}
.archive-section-tab:focus-visible {outline:3px solid #e8b640;outline-offset:4px;}
@media(max-width:600px){.archive-section-tabs{gap:12px;width:94%;}.archive-section-tab{width:48%;min-height:86px;padding:14px 16px;font-size:22px;}}

/* Typed archive details, distinct from the handwritten encounter title. */
.case-entry .case-location{display:block;width:fit-content;max-width:100%;align-self:flex-start;box-sizing:border-box;padding:5px 9px;background:rgba(160,130,87,.35);border:1px solid rgba(112,81,48,.35);border-radius:3px;color:#382818;box-shadow:inset 0 1px 2px #fff3;overflow-wrap:anywhere}
