
/* =========================================
   VAN METER VISITOR
   JOURNAL PAGE STYLES
   BASED ON THE WORKING LOVELAND TEMPLATE
========================================= */

@font-face {
    font-family: "Snake";
    src: url("../fonts/Snake.ttf") format("truetype");
    unicode-range: U+0020-007E;
    font-display: swap;
}

@font-face {
    font-family: "Carter One";
    src: url("../fonts/CarterOne.ttf") format("truetype");
    font-display: swap;
}

/* MAIN PAGE */

.archive-page {
    min-height: 100vh;
}

.archive-main {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 15px 20px 80px;
    box-sizing: border-box;
}

/* NAVIGATION */

.archive-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto 40px;
}

.archive-navigation a,
.archive-footer a {
    color: #f1c56a;
    font-family: "Carter One", Georgia, serif;
    font-size: 17px;
    text-decoration: none;
    text-shadow: 1px 2px 3px #000;
}

.archive-navigation a:hover,
.archive-footer a:hover {
    color: #fff0b8;
    text-decoration: underline;
}

/* =========================================
   OPEN LEATHER JOURNAL
========================================= */

.archive-journal {
    position: relative;
    width: min(100%, 1400px);
    margin: 30px auto 70px;
    aspect-ratio: 1.8 / 1;
    container-type: inline-size;
}

.archive-journal-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

/* =========================================
   JOURNAL WRITING AREAS
   NO INTERNAL SCROLLING
========================================= */

.archive-journal .archive-left-page,
.archive-journal .archive-right-page {
    position: absolute;
    top: 10%;
    width: 29%;
    height: 77%;
    padding: 0;
    box-sizing: border-box;
    z-index: 2;

    font-family: "Snake", Georgia, serif;
    color: #382415;
    text-align: left;

    overflow: visible;
    scrollbar-width: none;
}

.archive-journal .archive-left-page {
    left: 15%;
    right: auto;
}

.archive-journal .archive-right-page {
    right: 15%;
    left: auto;
}

/* HANDWRITTEN HEADINGS */

.archive-journal .archive-left-page h3,
.archive-journal .archive-right-page h3 {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(24px, 3.6cqw, 50px);
    font-weight: normal;
    line-height: 1.1;
    text-align: center;
    color: #382415;
    margin: 0 0 2%;
}

/* HANDWRITTEN PARAGRAPHS */

.archive-journal .archive-left-page p,
.archive-journal .archive-right-page p {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(18px, 2.8cqw, 40px);
    font-weight: normal;
    line-height: 1.15;
    margin: 0 0 2%;
    color: #382415;
    overflow-wrap: break-word;
}

/* DATES */

.archive-journal .journal-date {
    font-size: clamp(16px, 2.2cqw, 30px) !important;
    text-align: center;
    margin-bottom: 5% !important;
}

/* SIGNATURE */

.archive-journal .archive-signature {
    text-align: right;
    margin-top: 6% !important;
}

/* =========================================
   ILLUSTRATION PARCHMENT
========================================= */

.evidence-section {
    width: 100%;
    max-width: 1200px;
    margin: 35px auto 90px;
    display: flex;
}

.evidence-left {
    justify-content: flex-start;
}

.evidence-right {
    justify-content: flex-end;
}

.evidence-paper {
    position: relative;
    width: min(90%, 950px);
    aspect-ratio: 1.5 / 1;
    container-type: inline-size;
    filter: drop-shadow(12px 17px 12px rgba(0,0,0,.55));
}

.evidence-left .evidence-paper {
    transform: rotate(-3deg);
}

.evidence-right .evidence-paper {
    transform: rotate(3deg);
}

.evidence-paper-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.evidence-content {
    position: absolute;
    top: 7%;
    left: 6%;
    width: 88%;
    height: 86%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.evidence-content h3 {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(28px, 7cqw, 75px);
    font-weight: normal;
    line-height: 1.1;
    color: #382415;
    margin: 0 0 2%;
}

.evidence-placeholder {
    flex: 1 1 auto;
    min-height: 0;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Snake", Georgia, serif;
    font-size: clamp(24px, 4.5cqw, 50px);
    font-style: italic;
    color: #725336;
    text-align: center;
    border: 2px dashed rgba(114,83,54,.3);
    border-radius: 5px;
}

.evidence-content > p {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(20px, 3.5cqw, 40px);
    color: #382415;
    margin: 1% 0 0;
}

/* =========================================
   YOUTUBE VIDEO
========================================= */

.archive-video-section {
    max-width: 1000px;
    margin: 90px auto;
    text-align: center;
    color: #f2dfb9;
}

.archive-video-section h2 {
    font-family: "Carter One", Georgia, serif;
    font-size: clamp(27px, 4vw, 43px);
    color: #e8b640;
    text-shadow: 2px 3px 5px #000;
}

.archive-video-section p {
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    max-width: 850px;
    margin: 18px auto 25px;
}

.archive-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: visible;
    border: 5px solid #6c4628;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 12px 35px rgba(0,0,0,.6);
}

.archive-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.archive-youtube-link {
    display: inline-block;
    margin-top: 25px;
    padding: 13px 25px;
    background: #6a3e24;
    color: #f6db9b;
    border: 1px solid #b78d4e;
    border-radius: 5px;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 17px;
}

.archive-youtube-link:hover {
    background: #8c5830;
}

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

.archive-footer {
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 30px 0;
    border-top: 1px solid rgba(230,190,120,.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.archive-footer > p {
    font-family: "Carter One", Georgia, serif;
    font-size: 30px;
    line-height: 1.4;
    text-align: center;
    color: #e5b84f;
    margin: 25px 0;
}

/* =========================================
   SMALLER SCREENS
========================================= */

@media (max-width: 700px) {

    .archive-main {
        padding: 10px 10px 50px;
    }

    .archive-navigation {
        gap: 12px;
        margin-bottom: 30px;
    }

    .archive-navigation a {
        font-size: 13px;
    }

    .archive-journal {
        width: 100%;
        margin-bottom: 40px;
    }

    .archive-journal .archive-left-page,
    .archive-journal .archive-right-page {
        top: 10%;
        width: 29%;
        height: 77%;
        overflow: visible;
    }

    .archive-journal .archive-left-page {
        left: 15%;
    }

    .archive-journal .archive-right-page {
        right: 15%;
    }

    .archive-journal .archive-left-page h3,
    .archive-journal .archive-right-page h3 {
        font-size: clamp(10px, 3.6cqw, 25px);
    }

    .archive-journal .archive-left-page p,
    .archive-journal .archive-right-page p {
        font-size: clamp(8px, 2.8cqw, 20px);
        line-height: 1.15;
    }

    .archive-journal .journal-date {
        font-size: clamp(8px, 2.2cqw, 16px) !important;
    }

    .evidence-section {
        margin-bottom: 55px;
    }

    .evidence-paper {
        width: 95%;
    }

    .evidence-content h3 {
        font-size: clamp(18px, 6cqw, 42px);
    }

    .evidence-content > p {
        font-size: clamp(13px, 3cqw, 25px);
    }

    .archive-video-section {
        margin: 60px auto;
    }

    .archive-footer {
        flex-direction: column;
        text-align: center;
    }
}


/* =========================================
   VAN METER VISITOR RESEARCH NOTES
========================================= */

.archive-research-notes {
    width: 100%;
    max-width: 1150px;
    margin: 90px auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}

.archive-research-notes > h2 {
    font-family: "Carter One", Georgia, serif;
    color: #d5b681;
    font-size: clamp(26px, 3vw, 42px);
    margin-bottom: 12px;
}

.archive-research-notes > p {
    font-family: Georgia, serif;
    color: #e8d8b8;
    font-size: 17px;
    margin-bottom: 25px;
}

/* THREE STACKED PARCHMENT SHEETS */

.research-paper-stack {
    position: relative;
    width: min(100%, 950px);
    aspect-ratio: 1.75 / 1;
    margin: 65px auto 45px;
    isolation: isolate;
    container-type: inline-size;
}

.research-paper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    background-image: url("../Images/Parchment-Sheet.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    color: #392818;
    text-align: left;
    cursor: pointer;

    filter: drop-shadow(
        8px 14px 9px rgba(0,0,0,.45)
    );

    transition:
        transform .45s ease,
        filter .45s ease;

    overflow: visible;
}

/* PAPER POSITIONS */

.research-paper:nth-child(1) {
    transform: translate(-2%, -4%) rotate(-5deg);
}

.research-paper:nth-child(2) {
    transform: translate(3%, 2%) rotate(5deg);
}

.research-paper:nth-child(3) {
    transform: translate(-1%, 5%) rotate(-1deg);
}

/* SELECTED PAPER */

.research-paper.is-active {
    transform: translate(0, -5%) rotate(0deg) scale(1.015);
    filter: drop-shadow(
        12px 20px 14px rgba(0,0,0,.55)
    );
}

/* HANDWRITING */

.research-paper-content {
    position: absolute;
    top: 12%;
    left: 12%;
    width: 76%;
    height: 74%;
    box-sizing: border-box;
    overflow: visible;
}

.research-paper-content h3 {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(33px, 5cqw, 58px);
    font-weight: normal;
    line-height: .95;
    text-align: center;
    color: #392818;
    margin: 0 0 8px;
}

.research-paper-content p {
    font-family: "Snake", Georgia, serif;
    font-size: clamp(26px, 4.2cqw, 50px);
    font-weight: normal;
    line-height: .9;
    color: #392818;
    margin: 0 0 5px;
}

/* RESEARCH BUTTONS */

.research-page-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px auto 0;
}

.research-page-controls button {
    font-family: Georgia, serif;
    font-size: 15px;
    color: #f3dfb5;
    background: #3a281b;
    border: 1px solid #a88b5d;
    border-radius: 5px;
    padding: 11px 20px;
    cursor: pointer;
    transition: background .2s ease;
}

.research-page-controls button:hover,
.research-page-controls button.is-active {
    background: #74512c;
}

@media (max-width: 700px) {

    .research-paper-stack {
        aspect-ratio: .8 / 1;
        margin: 40px auto 25px;
    }

    .research-paper-content {
        top: 12%;
        left: 13%;
        width: 74%;
        height: 74%;
    }

    .research-paper-content h3 {
        font-size: clamp(25px, 5cqw, 40px);
    }

    .research-paper-content p {
        font-size: clamp(20px, 4.2cqw, 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .research-paper {
        transition: none;
    }
}

/* Shared additions; reference pages and global styles remain untouched. */
@font-face {font-family: Typewriter; src:url('../fonts/veteran-typewriter.ttf')}
body.archive-page::before {background-image:url('../Images/wood-background.png')}
[hidden] {display:none !important}
.journal-controls {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:15px;margin:-35px auto 60px}
.journal-controls button {font:15px Georgia,serif;color:#f3dfb5;background:#3a281b;border:1px solid #a88b5d;border-radius:5px;padding:11px 20px;cursor:pointer}
.journal-controls button:disabled {opacity:.45;cursor:default}
.journal-controls output {font:16px Georgia,serif}
.archive-page :focus-visible {outline:2px solid #e8b640;outline-offset:4px}
.content-warnings {max-width:1000px;margin:20px auto;padding:15px;background:#fff0c9;color:#60251b;border:2px solid #b74724;text-align:left;font:16px/1.5 Georgia,serif}
.content-warnings p {font:inherit}
.archive-journal .archive-left-page,.archive-journal .archive-right-page {overflow:visible;overflow-wrap:anywhere}
.research-paper-content {overflow:auto;scrollbar-width:thin}
.research-paper-content p {overflow-wrap:anywhere}
.evidence-image-button {display:flex;flex:1;min-height:0;width:85%;background:none;border:0;padding:0;cursor:zoom-in;justify-content:center}
.evidence-image-button img {max-width:100%;max-height:100%;object-fit:contain}
.evidence-lightbox {width:min(94vw,1100px);max-height:92vh;box-sizing:border-box;padding:45px 25px 25px;border:2px solid #9c7138;border-radius:8px;background:#ead4a6;color:#352416}
.evidence-lightbox::backdrop {background:rgba(0,0,0,.85)}
.evidence-lightbox img {max-width:100%;max-height:72vh;object-fit:contain}
.evidence-lightbox p {font:18px Georgia,serif}
.lightbox-close {position:absolute;top:8px;right:15px;border:0;background:none;font-size:36px;cursor:pointer}
.archive-navigation,.archive-footer {flex-wrap:wrap}
@media(max-width:700px) {body.archive-page {padding:25px 8px}.archive-research-notes {padding:0 12px}.archive-footer>p {font-size:24px}}

