/* =========================================
   WORLD ARCHIVE PAGE
========================================= */

.wiki-hero {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 70px 25px;
    color: #fff;
    background: linear-gradient( rgba(24,14,8,.48), rgba(24,14,8,.72) ), url("../images/locations/archivebanner.webp");

    background-size: cover;
    background-position: center 5%;
    background-repeat: no-repeat;
    border-bottom: 4px solid #c69c4a;
}


    .wiki-hero h1 {
        margin: 0 0 18px;
        font-family: var(--title-font);
        font-size: clamp(46px, 7vw, 82px);
        color: #f4d47c;
        text-shadow: 0 4px 16px rgba(0,0,0,.8);
    }


    .wiki-hero p {
        max-width: 760px;
        margin: 0;
        font-size: 22px;
        line-height: 1.6;
        color: #f7edd0;
        text-shadow: 0 2px 8px rgba(0,0,0,.7);
    }


/* =========================================
   ARCHIVE PARCHMENT PAGE
========================================= */

.archive-page {
    position: relative;
    width: 100%;
    padding: clamp(55px, 7vw, 90px) var(--page-padding) clamp(75px, 9vw, 120px);
    background: radial-gradient( ellipse at 50% 0%, rgba(255,250,221,.38), transparent 55% ), linear-gradient( rgba(248,237,202,.72), rgba(226,201,149,.78) ), url("../images/locations/archivebackground.webp");
    background-size: auto, auto, cover;
    background-position: center, center, center top;
    background-repeat: no-repeat, no-repeat, no-repeat;
    color: #3b2618;
}

    .archive-page::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        box-shadow: inset 0 20px 35px rgba(83,52,20,.10), inset 0 -25px 45px rgba(83,52,20,.12);
    }




/* =========================================
   ARCHIVE GRID
========================================= */

.archive-grid {
    width: min(1150px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;    
    position: relative;
    z-index: 1;
}


/* =========================================
   ARCHIVE CARD
========================================= */

.archive-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 245px;
    padding: 30px 25px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: #342116;
    background: rgba(255,250,229,.72);
    border: 1px solid rgba(111,76,36,.42);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(70,45,20,.12);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}


    .archive-card::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient( circle at top center, rgba(255,255,255,.38), transparent 45% );
    }


    .archive-card:hover,
    .archive-card:focus-visible {
        transform: translateY(-5px);
        background: rgba(255,251,233,.94);
        border-color: rgba(139,93,31,.62);
        box-shadow: 0 15px 30px rgba(70,45,20,.20);
    }

        .archive-card:hover h2,
        .archive-card:focus-visible h2 {
            color: #75471d;
        }


    .archive-card:focus-visible {
        outline: 3px solid rgba(139,93,31,.45);
        outline-offset: 4px;
    }


/* =========================================
   SEAL
========================================= */

/* =========================================
   ARCHIVE MEDALLIONS
========================================= */

.seal {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 31px;
    line-height: 1;
    border-radius: 50%;
    background: radial-gradient( circle at 35% 30%, #fff1b0 0%, #e5bd59 38%, #b57c26 72%, #80531c 100% );
    border: 2px solid rgba(95,58,19,.85);
    box-shadow: 0 6px 14px rgba(59,38,24,.18), inset 0 0 0 3px rgba(255,244,194,.32), inset 0 -5px 10px rgba(92,54,14,.18);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .seal::before {
        content: "";
        position: absolute;
        inset: 7px;
        border: 1px solid rgba(87,51,17,.38);
        border-radius: 50%;
        pointer-events: none;
    }

    .seal::after {
        content: "";
        position: absolute;
        top: 11px;
        left: 15px;
        width: 18px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,.28);
        transform: rotate(-25deg);
        pointer-events: none;
    }

.archive-card:hover .seal,
.archive-card:focus-visible .seal {
    transform: translateY(-2px) scale(1.04);
}


    /* Inner engraved ring */

    .seal::before {
        content: "";
        position: absolute;
        inset: 7px;
        border: 1px solid rgba(87,51,17,.38);
        border-radius: 50%;
        pointer-events: none;
    }


    /* Tiny highlight */

    .seal::after {
        content: "";
        position: absolute;
        top: 11px;
        left: 15px;
        width: 18px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,.28);
        transform: rotate(-25deg);
        pointer-events: none;
    }


.archive-card:hover .seal,
.archive-card:focus-visible .seal {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 9px 18px rgba(59,38,24,.24), inset 0 0 0 3px rgba(255,244,194,.38), inset 0 -5px 10px rgba(92,54,14,.18);
}

/* =========================================
   CATEGORY MEDALLION TINTS
========================================= */

.archive-card:nth-child(1) .seal {
    box-shadow: 0 6px 14px rgba(59,38,24,.18), 0 0 0 3px rgba(135,96,155,.14), inset 0 0 0 3px rgba(255,244,194,.32);
}

.archive-card:nth-child(2) .seal {
    box-shadow: 0 6px 14px rgba(59,38,24,.18), 0 0 0 3px rgba(102,134,47,.14), inset 0 0 0 3px rgba(255,244,194,.32);
}

.archive-card:nth-child(3) .seal {
    box-shadow: 0 6px 14px rgba(59,38,24,.18), 0 0 0 3px rgba(184,134,44,.16), inset 0 0 0 3px rgba(255,244,194,.32);
}

.archive-card:nth-child(4) .seal {
    box-shadow: 0 6px 14px rgba(59,38,24,.18), 0 0 0 3px rgba(167,100,54,.14), inset 0 0 0 3px rgba(255,244,194,.32);
}

.archive-card:nth-child(5) .seal {
    box-shadow: 0 6px 14px rgba(59,38,24,.18), 0 0 0 3px rgba(79,122,78,.14), inset 0 0 0 3px rgba(255,244,194,.32);
}

.archive-card:nth-child(6) .seal {
    box-shadow: 0 6px 14px rgba(59,38,24,.18), 0 0 0 3px rgba(126,89,56,.14), inset 0 0 0 3px rgba(255,244,194,.32);
}

@media(max-width: 650px) {

    .seal {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
        font-size: 28px;
    }

    .site-footer h2 {
        font-size: clamp(30px, 9vw, 45px);
    }

    .footer-quote {
        font-size: clamp(18px, 5vw, 25px);
    }
}

/* =========================================
   CARD TEXT
========================================= */

.archive-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-family: var(--title-font);
    font-size: 25px;
    line-height: 1.25;
    color: #56351a;
    transition: color .25s ease;
}


.archive-card p {
    position: relative;
    z-index: 1;
    max-width: 290px;
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: #5e4934;
}


/* =========================================
   CATEGORY ACCENTS
========================================= */

.archive-card:nth-child(1) {
    border-top: 4px solid #87609b;
}

.archive-card:nth-child(2) {
    border-top: 4px solid #66862f;
}

.archive-card:nth-child(3) {
    border-top: 4px solid #b8862c;
}

.archive-card:nth-child(4) {
    border-top: 4px solid #a76436;
}

.archive-card:nth-child(5) {
    border-top: 4px solid #4f7a4e;
}

.archive-card:nth-child(6) {
    border-top: 4px solid #7e5938;
}


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

@media(max-width: 1000px) {

    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}


/* =========================================
   PHONE
========================================= */

@media(max-width: 650px) {

    .wiki-hero {
        min-height: 300px;
        padding: 90px 20px 45px;
    }


        .wiki-hero h1 {
            font-size: clamp(40px, 13vw, 58px);
        }


        .wiki-hero p {
            font-size: 18px;
            line-height: 1.5;
        }


    .archive-page {
        padding: 45px 18px 70px;
    }


    .archive-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .archive-card {
        min-height: 0;
        padding: 26px 22px;
    }


    .seal {
        width: 64px;
        height: 64px;
        margin-bottom: 17px;
        font-size: 30px;
    }


    .archive-card h2 {
        font-size: 23px;
    }


    .archive-card p {
        font-size: 16px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

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

    .archive-card {
        transition: none;
    }
}
