/* ========================================
   THE FRAGGLE ARCHIVES
   Main Site Stylesheet
   ======================================== */

:root {
    /* Archive colour palette */
    --archive-cream: #f7f1e8;
    --archive-card: #fbf8f2;
    --archive-light-card: #fffaf3;
    --archive-collection: #faf7f0;
    --archive-brown: #3a3028;
    --archive-brown-hover: #51443a;
    --archive-border: #c9bba9;
    --archive-border-light: #d8cbb9;
    --archive-button-border: #8b7a68;
    --archive-text: #333;
    --archive-muted: #666;
    --archive-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--archive-cream);
    color: var(--archive-text);
    font-family: Georgia, serif;
}

/* ========================================
   HEADER & BANNER
   ======================================== */

.site-header {
    width: 100%;
    height: auto;
    overflow: visible;
    border-bottom: 3px solid #3a3a3a;
}

.header-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.header-banner-link {
    display: block;
}

.header-banner-link picture {
    display: block;
}


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

.site-nav {
    padding: 12px 8px;
    background: var(--archive-brown);
    color: var(--archive-cream);
    text-align: center;
    white-space: nowrap;
}

.site-nav a {
    margin: 0 7px;
    color: var(--archive-cream);
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.site-nav a:hover,
main a:hover {
    text-decoration: underline;
}

main a {
    color: var(--archive-text);
    font-weight: bold;
    text-decoration: none;
}

.nav-heart {
    margin: 0 8px;
    color: var(--archive-cream);
}

/* ========================================
   NAVIGATION — TABLET
   Two deliberate rows so the full navigation
   remains visible and identical on every page.
   ======================================== */

@media (min-width: 601px) and (max-width: 1200px),
       (min-width: 1201px) and (max-width: 1400px) and (hover: none) and (pointer: coarse) {

    header .site-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;

        padding: 10px 8px;

        white-space: normal;
    }

    header .site-nav a {
        flex: 0 0 auto;

        margin: 2px 5px;

        font-size: 0.82rem;
        line-height: 1.35;
    }

    header .site-nav .nav-heart {
        flex: 0 0 auto;

        margin: 0 4px;

        font-size: 0.76rem;
        line-height: 1.35;
    }

    /* The fifth separator comes immediately after TRACKER.
       On tablet it becomes an invisible line break. */

    header .site-nav .nav-heart:nth-of-type(5) {
        flex-basis: 100%;

        width: 0;
        height: 0;

        margin: 0;

        overflow: hidden;

        font-size: 0;
        line-height: 0;
    }

}


/* =========================================================
   ARCHIVE PAGE INTRO
   Shared topper for main Archives pages
   ========================================================= */

.archive-page-intro {
  max-width: 760px;
  margin: 20px auto 45px;
  text-align: center;
}

.archive-eyebrow {
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}

.archive-page-intro h1 {
  margin-top: 6px;
}

.archive-page-lead {
  font-size: 1.08rem;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .archive-page-intro {
    margin: 20px auto 35px;
  }
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0px 30px 15px;
    font-size: 1.15rem;
    line-height: 1.8;
}

h1 {
    margin-top: 0;
    font-size: 3rem;
    text-align: center;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

hr {
    margin: 35px 0;
}

/* ========================================
   SHARED CARDS
   ======================================== */

.support-card {
    background: var(--archive-card);
    border: 1px solid var(--archive-border);
    box-shadow: var(--archive-shadow);
    margin: 40px 0;
    padding: 10px 40px 40px;
}


/* ========================================
   BOOKS
   One authoritative layout for all book cards
   ======================================== */

.books-page {
    max-width: 1060px;
}

.book-card {
    max-width: 1000px;
    margin: 32px auto;
    padding: 40px 48px;
    background: var(--archive-card);
    border: 1px solid var(--archive-border);
    box-shadow: var(--archive-shadow);
}

.book-cover {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto 32px;
}

.book-details {
    width: 100%;
    max-width: none;
    margin: 0;
}

.book-card h2 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 2.2rem;
}

.book-subtitle {
    margin: 0 0 26px;
    text-align: center;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.5;
}

.book-details > p:not(.book-subtitle):not(.book-status) {
    text-align: left;
    line-height: 1.7;
}

.book-status {
    display: block;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.65;
}

.book-status i {
    font-style: normal;
}

/* Status used inside future-book details */
.book-details > .book-status {
    margin: 22px 0 0;
    text-align: center;
}

/* Published-book purchase area */
.book-actions {
    width: 100%;
    max-width: none;
    margin: 22px 0 0;
}

.book-buy {
    text-align: center;
}

.book-buy .book-status {
    margin: 0 0 12px;
    text-align: center;
}

.book-buy .button {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin-top: 0;
    box-sizing: border-box;
}

.book-card .local-pickup {
    margin-top: 30px;
    text-align: left;
}

.paypal-link {
    margin-bottom: 40px;
}

@media (max-width: 700px) {
    .book-card {
        margin: 30px 0;
        padding: 24px;
    }

    .book-cover {
        margin-bottom: 26px;
    }

    .book-card h2 {
        font-size: 2rem;
    }

    .book-buy .button {
        width: 100%;
    }

    .book-card .local-pickup {
        margin-top: 28px;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: var(--archive-brown);
    border: 1px solid var(--archive-button-border);
    color: var(--archive-cream);
    font-size: 1.1rem;
    text-decoration: none;
}

.button:hover {
    background: var(--archive-brown-hover);
}

.paypal-button {
    position: relative;
    top: -10px;
}

/* Rounded buttons site-wide */
.button,
button,
input[type="submit"],
input[type="button"] {
  border-radius: 999px;
}


/* ========================================
   RESIDENTS
   ======================================== */

.residents-page {
    max-width: 1000px;
}

.residents-list {
    margin: 45px 0 55px;
}


/* Resident cards */

.resident-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: center;

    margin: 28px 0;
    padding: 30px;

    background: var(--archive-card);
    border: 1px solid var(--archive-border);
    box-shadow: var(--archive-shadow);
}


/* Resident photographs */

.resident-card img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;

    border: 1px solid var(--archive-border-light);
}


/* Resident information */

.resident-details {
    min-width: 0;
}

.resident-details h2 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.resident-details p {
    max-width: 650px;
    margin: 0;
    line-height: 1.65;
    text-align: left;
}


.resident-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin: 0 0 18px;
}

.resident-meta-item span {
    display: block;
    margin-bottom: 3px;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

.resident-meta-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: normal;
}

@media (max-width: 700px) {
    .resident-meta {
        justify-content: center;
        text-align: center;
    }
}

/* Resident metadata */

.resident-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;

    margin: 10px 0 18px;
    padding-top: 12px;

    border-top: 1px solid var(--archive-border);
}

.resident-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
}

.resident-meta-item span {
    font-size: 0.68rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

.resident-meta-item strong {
    font-size: 0.86rem;
    font-weight: normal;
}

/* Mobile */

@media (max-width: 700px) {

    .residents-list {
        margin: 35px 0 45px;
    }

    .resident-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .resident-card img {
        max-width: 260px;
    }

    .resident-details h2 {
        text-align: center;
    }

    .resident-details p {
        max-width: 520px;
        margin: 0 auto;
        text-align: left;
    }
}


@media (max-width: 700px) {
    .header-banner {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
}


/* ========================================
   COLLECTION
   ======================================== */

.collection-card {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 15px 30px 30px;
    background: var(--archive-collection);
    border: 1px solid var(--archive-border-light);
}

.collection-card h2 {
    margin: 0 0 15px;
}

.collection-card p {
    max-width: 750px;
    margin: 0 auto;
}

.collection-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 500px;
    margin: 25px auto 20px;
    object-fit: contain;
}

/* ========================================
   GIFT SHOP
   ======================================== */

.giftshop-card {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 15px 30px 30px;
    background: var(--archive-collection);
    border: 1px solid var(--archive-border-light);
}

.giftshop-card h2 {
    margin: 0 0 15px;
}

.giftshop-card p {
    max-width: 750px;
    margin: 0 auto;
}

.giftshop-card img {
    display: block;
    width: auto;
    max-width: 85%;
    max-height: 400px;
    height: auto;
    margin: 20px auto 25px;
}

.giftshop-card p:has(paypal-add-to-cart-button) {
   display: block;
   margin-bottom: -10px;
}


.product-specs {
  margin-top: 18px !important;
  margin-bottom: 18px !important;
  font-size: 0.95em;
  line-height: 1.6;
}


/* ================================
   GIFT SHOP CATALOGUE BROWSER
   ================================ */

.catalogue-browser {
  max-width: 900px;
  margin: 35px auto 45px;
}

.catalogue-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.catalogue-mode,
.catalogue-filter {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 18px;
  border: 1px solid var(--archive-border-light);
  border-radius: 999px;
  background: var(--archive-collection);
  color: #3b3128;
  cursor: pointer;
  transition: 0.2s ease;
}

.catalogue-mode:hover,
.catalogue-filter:hover {
  border-color: #3b3128;
}

.catalogue-mode.active,
.catalogue-filter.active {
  background: #3b3128;
  color: #f8f3ea;
  border-color: #3b3128;
}

.catalogue-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalogue-status {
  margin-top: 22px;
  font-style: italic;
  opacity: 0.75;
}

#collect-browser {
   margin-top: 2.25rem;
}


/* ========================================
   GIFT SHOP HUB
   ======================================== */

.giftshop-hub-page {
    max-width: 1000px;
}


/* Standard Archives divider */

.giftshop-hub-divider {
    margin: 35px 0;
    text-align: center;

    font-size: 1.05rem;
    letter-spacing: 0.3rem;

    opacity: 0.55;
}


/* =========================================
   GIFT SHOP GRID

   Desktop:
   Collect | Wear
   ========================================= */

.giftshop-hub-grid {
    display: grid;

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

    grid-template-areas:
        "collect wear";

    gap: 28px;

    margin: 15px auto 50px;
}

.giftshop-hub-collect {
    grid-area: collect;
}

.giftshop-hub-wear {
    grid-area: wear;
}


/* ========================================
   STANDARD HUB CARDS
   ======================================== */

.giftshop-hub-card {
    display: flex;
    flex-direction: column;

    min-height: 330px;

    padding: 38px 34px 34px;

    background: var(--archive-card);
    border: 1px solid var(--archive-border);
    box-shadow: var(--archive-shadow);

    text-align: center;
}


.giftshop-hub-card h2 {
    margin: 4px 0 18px;

    font-size: 2rem;
    line-height: 1.25;
}


/* Little trinkets / Books /
   Clothing & accessories */

.giftshop-hub-category {
    margin: 0 auto 18px;

    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.5;
}


/* Descriptions */

.giftshop-hub-description {
    max-width: 370px;

    margin: 0 auto 28px;

    line-height: 1.7;
}


/* Buttons stay aligned at bottom */

.giftshop-hub-button {
    align-self: center;

    margin-top: auto;
}


.giftshop-feature-label {
    margin: 0 0 6px;

    font-size: 0.76rem;
    font-weight: bold;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    opacity: 0.6;
}


.giftshop-hub-wear h2 {
    font-size: 2.4rem;
}


.giftshop-hub-wear .giftshop-hub-description {
    max-width: 650px;
}


/* ========================================
   GIFT SHOP HUB — MOBILE

   Collect
   Wear
   ======================================== */

@media (max-width: 700px) {

    .giftshop-hub-grid {
        grid-template-columns: 1fr;

        grid-template-areas:
            "collect"
            "wear";

        gap: 24px;

        margin-bottom: 40px;
    }


    .giftshop-hub-card,
    .giftshop-hub-wear {
        min-height: 0;

        padding: 32px 26px;
    }


    .giftshop-hub-card h2,
    .giftshop-hub-wear h2 {
        font-size: 1.9rem;
    }


    .giftshop-hub-description,
    .giftshop-hub-wear .giftshop-hub-description {
        max-width: 100%;
    }


    .giftshop-hub-button {
        display: block;

        width: 100%;
        max-width: 100%;

        text-align: center;
    }


    .giftshop-hub-divider {
        margin: 30px 0;
    }

}


/* ========================================
   MUSEUM HUB
   ======================================== */

.museum-hub-page {
    max-width: 1000px;
}


/* Intro */

.museum-hub-page .archive-page-intro {
    max-width: 760px;
}

.museum-hub-divider {
    margin: 35px 0;
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 0.3rem;
    opacity: 0.55;
}


/* ========================================
   MUSEUM WING GRID

   Desktop:
   Fraggle      | Odin
   Headquarters | AUA
   ======================================== */

.museum-wing-grid {
    display: grid;

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

    grid-template-areas:
        "fraggle odin"
        "headquarters aua";

    gap: 28px;

    margin: 15px auto 50px;
}


/* Grid placement */

.museum-wing-fraggle {
    grid-area: fraggle;
}

.museum-wing-headquarters {
    grid-area: headquarters;
}

.museum-wing-odin {
    grid-area: odin;
}

.museum-wing-aua {
    grid-area: aua;
}


/* ========================================
   INDIVIDUAL MUSEUM WINGS
   ======================================== */

.museum-wing-card {
    display: flex;
    flex-direction: column;

    min-height: 330px;

    padding: 38px 34px 34px;

    background: var(--archive-card);
    border: 1px solid var(--archive-border);
    box-shadow: var(--archive-shadow);

    text-align: center;
}


/* The Life / The Institution / etc. */

.museum-wing-category {
    margin: 0 0 8px;

    font-size: 0.76rem;
    font-weight: bold;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    opacity: 0.6;
}


/* Titles */

.museum-wing-card h2 {
    margin: 4px 0 20px;

    font-size: 2rem;
    line-height: 1.25;
}



/* Descriptions */

.museum-wing-description {
    max-width: 360px;

    margin: 0 auto 28px;

    line-height: 1.7;
}


/* Keeps all four buttons at the bottoms
   of their respective cards */

.museum-wing-button {
    align-self: center;

    margin-top: auto;
}


/* ========================================
   MUSEUM CLOSING NOTE
   ======================================== */

.museum-hub-footer-note {
    max-width: 620px;

    margin: 0 auto 45px;

    text-align: center;
}

.museum-hub-footer-note .museum-hub-divider {
    margin-top: 0;
}

.museum-hub-footer-note p {
    margin: 0;

    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;

    opacity: 0.8;
}


/* ========================================
   MUSEUM HUB — MOBILE

   Mobile reading order:
   Fraggle
   Headquarters
   Odin
   AUA
   ======================================== */

@media (max-width: 700px) {

    .museum-wing-grid {
        grid-template-columns: 1fr;

        grid-template-areas:
            "fraggle"
            "headquarters"
            "odin"
            "aua";

        gap: 24px;

        margin-bottom: 40px;
    }


    .museum-wing-card {
        min-height: 0;

        padding: 32px 26px;
    }


    .museum-wing-card h2 {
        font-size: 1.9rem;
    }


    .museum-wing-description {
        max-width: 100%;
    }


    .museum-wing-button {
        display: block;

        width: 100%;
        max-width: 100%;

        text-align: center;

        overflow-wrap: anywhere;
    }


    .museum-hub-divider {
        margin: 30px 0;
    }

}


/* =========================================================
   HUB PAGE INTRO SPACING
   Gives Museum + Gift Shop the same breathing room between
   the introductory subtitle and the first card as other pages.
   ========================================================= */

.hub-first-card {
  margin-top: 3rem;
}

@media (max-width: 700px) {
  .hub-first-card {
    margin-top: 2.5rem;
  }
}





/* ========================================
   CONTACT
   ======================================== */

.contact-page .support-card {
    text-align: center;
}

.contact-page .support-card h2,
.contact-page .support-card p,
.contact-page .support-card .archive-eyebrow {
    text-align: center;
}

.contact-page .support-card p {
    margin-left: auto;
    margin-right: auto;
}

.contact-page .support-card hr {
    margin-left: auto;
    margin-right: auto;
}

.contact-page .support-card .button {
    margin-left: auto;
    margin-right: auto;
}


/* ========================================
   CONTACT — MOBILE
   ======================================== */

@media (max-width: 700px) {

    .contact-page .support-card h2,
    .contact-page .support-card p,
    .contact-page .support-card .archive-eyebrow {
        text-align: center;
    }

    .contact-page .support-card p {
        margin-left: auto;
        margin-right: auto;
    }

}





/* ========================================
   SUPPORT
   ======================================== */

.support-page {
    max-width: 1000px;
}


/* Overview */

.support-overview {
    margin: 45px 0;
    padding: 30px 40px 34px;

    background: var(--archive-card);
    border: 1px solid var(--archive-border);
    box-shadow: var(--archive-shadow);
}

.support-overview > .archive-eyebrow,
.support-overview > h2 {
    text-align: center;
}

.support-overview h2 {
    margin-top: 5px;
}

.support-overview-text {
    max-width: 760px;
    margin: 24px auto 0;
}

.support-overview-text p {
    line-height: 1.7;
    text-align: left;
}


/* Support methods */

.support-methods {
    margin: 55px 0;
}

.support-methods > .archive-eyebrow,
.support-methods > h2 {
    text-align: center;
}

.support-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;

    margin-top: 30px;
}

.support-method-card {
    padding: 30px;

    background: var(--archive-card);
    border: 1px solid var(--archive-border);
    box-shadow: var(--archive-shadow);
}

.support-method-type {
    display: block;

    margin-bottom: 7px;

    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;

    opacity: 0.65;
}

.support-method-card h3 {
    margin: 0 0 18px;
    text-align: center;
}

.support-method-card p {
    line-height: 1.65;
    text-align: left;
}

.support-method-wide {
    max-width: 1000px;
    margin: 28px auto 0;
}

.support-detail {
    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid var(--archive-border);

    text-align: center;
}

.support-detail span {
    display: block;

    margin-bottom: 5px;

    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    opacity: 0.65;
}

.support-detail a {
    font-weight: bold;
}

.support-action {
    margin-top: 24px;
    text-align: center;
}


/* Closing note */

.support-note {
    max-width: 760px;

    margin: 50px auto 55px;
    padding: 28px 34px;

    text-align: center;

    background: var(--archive-card);
    border: 1px solid var(--archive-border);
    box-shadow: var(--archive-shadow);
}

.support-note p {
    line-height: 1.65;
}

.support-divider {
    margin: 22px 0;

    font-size: 1.1rem;
    letter-spacing: 0.3rem;

    opacity: 0.6;
}

.support-thanks {
    margin-bottom: 0;
}


/* Mobile */

@media (max-width: 700px) {

    .support-overview {
        padding: 26px 24px;
    }

    .support-method-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .support-method-card {
        padding: 24px;
    }

    .support-method-wide {
        margin-top: 22px;
    }

    .support-action .button {
        width: 100%;
        box-sizing: border-box;
    }

    .support-note {
        padding: 26px 24px;
    }
}



/* ========================================
   CHARTER
   Founding document treatment
   ======================================== */

.charter-page {
    max-width: 900px;
}


/* Slightly tighter relationship between
   the two introductory paragraphs */

.charter-intro-closing {
    margin-top: -8px;
    font-style: italic;
}


/* Main document */

.charter-document {
    position: relative;
    max-width: 760px;
    margin: 45px auto 55px;
    padding: 55px 70px 60px;

    background: var(--archive-card);
    border: 1px solid var(--archive-border);
    box-shadow: var(--archive-shadow);
}


/* Inner archival border */

.charter-document::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid var(--archive-border-light);
    pointer-events: none;
}


/* Document heading */

.charter-document-header {
    position: relative;
    z-index: 1;
    text-align: center;
}

.charter-document-label {
    margin: 0 0 8px;

    font-size: 0.76rem;
    font-weight: bold;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
}

.charter-document-header h2 {
    margin: 0;
    font-size: 2.25rem;
}


/* Charter's ceremonial divider.
   ❖ belongs ONLY to the Charter. */

.charter-divider {
    position: relative;
    z-index: 1;

    margin: 30px 0;
    text-align: center;

    font-size: 1.05rem;
    letter-spacing: 0.28rem;
    opacity: 0.55;
}


/* Main text */

.charter-text {
    position: relative;
    z-index: 1;

    max-width: 610px;
    margin: 0 auto;

    text-align: center;
}

.charter-text p {
    margin: 0 0 18px;
}


/* Opening dedication */

.charter-dedication {
    max-width: 540px;
    margin: 0 auto 30px !important;

    font-size: 1.12em;
    font-style: italic;
    line-height: 1.7;
}


/* Belief section */

.charter-beliefs {
    margin: 32px auto;
}

.charter-beliefs p {
    margin-bottom: 12px;
}


/* Central thesis */

.charter-statement {
    max-width: 500px;
    margin: 38px auto 34px;
    padding: 24px 20px;

    border-top: 1px solid var(--archive-border-light);
    border-bottom: 1px solid var(--archive-border-light);

    font-size: 1.18em;
    font-style: italic;
}

.charter-statement p {
    margin: 0;
}

.charter-statement p + p {
    margin-top: 4px;
    font-weight: bold;
}


/* Core principle */

.charter-principle {
    max-width: 560px;
    margin: 0 auto 36px !important;

    font-size: 1.12em;
    font-weight: bold;
    line-height: 1.75;
}


/* Closing passage */

.charter-closing {
    max-width: 580px;
    margin: 0 auto;
}

.charter-closing p {
    margin-bottom: 14px;
}

.charter-closing p:last-child {
    margin-top: 24px;
    margin-bottom: 0;

    font-style: italic;
}


/* Last ceremonial mark */

.charter-divider-final {
    margin-bottom: 0;
}


/* ========================================
   CHARTER — MOBILE
   ======================================== */

@media (max-width: 600px) {

    .charter-document {
        margin: 35px auto 45px;
        padding: 45px 32px 48px;
    }

    .charter-document::before {
        inset: 10px;
    }

    .charter-document-header h2 {
        font-size: 2rem;
    }

    .charter-document-label {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
    }

    .charter-divider {
        margin: 26px 0;
    }

    .charter-dedication {
        font-size: 1.05em;
    }

    .charter-statement {
        margin: 32px auto;
        padding: 20px 10px;
        font-size: 1.1em;
    }

    .charter-principle {
        font-size: 1.06em;
    }
}



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

footer {
  padding: 0 30px 20px;
  color: var(--archive-muted);
  text-align: center;
}

.site-footer a {
  color: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  opacity: 0.85;
}

.site-footer a:hover {
  opacity: 1;
}

.footer-motto {
  font-style: italic;
  font-size: 0.9em;
  opacity: 0.85;
}

.footer-divider {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
  opacity: 0.55;
  letter-spacing: 0.4rem;
}

.footer-divider {
  text-align: center;
  margin: 1rem 0 0.6rem;
  font-size: 0.9rem;
  opacity: 0.55;
  letter-spacing: 0.4rem;
}

.site-footer {
  margin-top: 0;
  padding-top: 0;
}

.site-footer p:first-child {
  margin-top: 0;
}

.footer-copyright {
 margin-top: 1.4rem;
}


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

.footer-moons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 1rem;
}

.footer-moon {
  width: 38px;
  height: 38px;
  padding: 5px;
  border-radius: 50%;
  object-fit: contain;
  opacity: 0.28;
  filter: grayscale(100%) brightness(0.92);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.footer-moon.current-phase {
  opacity: 1;
  filter: none;
  background: radial-gradient(circle, #16131d 0%, #211a2b 62%, rgba(33, 26, 43, 0) 74%);
  box-shadow:
    0 0 0 1px rgba(80, 66, 99, 0.22),
    0 0 12px rgba(111, 95, 143, 0.22);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .footer-moons {
    gap: 0.35rem;
    margin: 1rem 0 0.85rem;
  }

  .footer-moon {
    width: 34px;
    height: 34px;
    padding: 4px;
  }
}



/* ========================================
   PARTNERSHIPS
   ======================================== */


.partnerships-page {
  max-width: 1000px;
  margin: 0 auto;
}

.partnerships-intro {
  max-width: 760px;
  margin: 20px auto 45px;
  text-align: center;
}

.partnerships-intro h1 {
  margin-top: 6px;
}

.partnerships-lead {
  font-size: 1.08rem;
  line-height: 1.7;
}

.eyebrow {
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}


/* Accountability */

.funds-accountability {
  margin: 45px 0;
  padding: 30px 35px;
  background: var(--archive-card);
  border: 1px solid var(--archive-border);
  box-shadow: var(--archive-shadow);
  text-align: center;
}

.funds-accountability h2 {
  margin-top: 5px;
}

.funds-total {
  margin: 25px auto 20px;
}

.funds-total strong {
  display: block;
  margin-bottom: 7px;
  font-size: 2rem;
}

.funds-total span {
  font-size: 0.9rem;
}


/* Partners */

.partner-network {
  margin: 55px 0;
}

.partner-network > h2,
.partner-network > .eyebrow {
  text-align: center;
}

.partner-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: center;

  margin: 28px 0;
  padding: 30px;

  background: var(--archive-card);
  border: 1px solid var(--archive-border);
  box-shadow: var(--archive-shadow);
}

.partner-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 150px;
  padding: 20px;

  border: 1px dashed var(--archive-border);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.partner-type {
  display: inline-block;
  margin-bottom: 7px;

  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.partner-details h3 {
  margin: 0 0 12px;
}

.partner-details p {
  line-height: 1.65;
}

.partner-impact {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;

  margin-top: 8px;
  padding-top: 12px;

  border-top: 1px solid var(--archive-border);
}

.partner-impact span {
  font-size: 0.85rem;
}

.partner-impact strong {
  font-size: 1.25rem;
}

.partner-logo {
 display: flex;
 align-items: center;
 justify-content: center;
}

.partner-logo img {
 display: block;
 width: 100%;
 max-width: 160px;
 max-height: 150px;
 margin: 0 auto;
 object-fit: contain;
}


/* Mobile */

@media (max-width: 700px) {

  .partnerships-intro {
    margin: 20px auto 35px;
  }

  .funds-accountability {
    padding: 26px 22px;
  }

  .partner-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
    text-align: center;
  }

  .partner-logo-placeholder {
    min-height: 120px;
  }

  .partner-impact {
    justify-content: center;
  }
}

.partner-logo img {
  display: block;
  width: 100%;
  max-width: 160px;
  max-height: 150px;
  margin: 0 auto;
  object-fit: contain;
}

.parter-details p {
   text-align: left;
}


/* ========================================
   STEVE
   ======================================== */

.steve-image {
    display: block;
    width: 500px !important;
    max-width: 80%;
    height: auto;
    margin: 25px auto;
}

/* ========================================
   TRACKER 
   ======================================== */
.footer-breathing-room {
  padding-bottom: 1rem;
}

@media (max-width: 700px) {
  .footer-breathing-room {
    padding-bottom: 4.5rem;
  }
}

.tracker-count {
    text-align: center;
    margin: 0 auto 35px;
    font-size: 1.1rem;
}

.tracker-count strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 4px;
}

input[type="date"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


.latest-sighting {
 max-width: 760px;
 margin: 0 auto 25px;
 padding: 22px 24px;
 background: var(--archive-card);
 border: 1px solid var(--archive-border);
 box-shadow: var(--archive-shadow);
 text-align: center;
}

.latest-sighting-label {
 display: block;
 margin-bottom: 10px;
 font-weight: bold;
 text-transform: uppercase;
 letter-spacing: 0.08em;
 font-size: 0.85rem;
}

.latest-sighting strong {
 display: block;
 margin-bottom: 6px;
 font-size: 1.35rem;
}



/* =========================================================
   ARCHIVE STATS
   ========================================================= */

.archive-stats {
  margin: 0 auto 45px;
  padding: 28px 30px 30px;
  background: var(--archive-card);
  border: 1px solid var(--archive-border);
  box-shadow: var(--archive-shadow);
  text-align: center;
}

.archive-stats h2 {
  margin: 0 0 24px;
}

.archive-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.archive-stat {
  padding: 12px 8px;
}

.archive-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.8rem;
  line-height: 1;
}

.archive-stat span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
}


/* Mobile */

@media (max-width: 700px) {

  .archive-stats {
    padding: 24px 18px 26px;
  }

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

  .archive-stat strong {
    font-size: 1.6rem;
  }

  .archive-stat span {
    font-size: 0.82rem;
  }

}


/* =========================================================
   TRACKER LEGEND
   ========================================================= */

.tracker-legend {
  margin: 0 auto 40px;
  text-align: center;
}

.tracker-legend-title {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.tracker-legend-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.tracker-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tracker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.tracker-dot-fv {
  background: #4f7d57;
}

.tracker-dot-twwl {
  background: #75528c;
}

.tracker-dot-ssff {
  background: #a84949;
}


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

@media (max-width: 600px) {

   .charter-card {
      padding: 30px 30px 40px;
   }

   .charter-text h2 {
      margin-top: 0;
   }

.site-nav {
    padding: 6px 2px;
    white-space: normal;
}

.site-nav a {
    display: inline-block;
    margin: 2px 1px;
    font-size: 0.62rem;
}

.nav-heart {
  margin: 0 2px;
  font-size: 0.72rem;
}

    .header-banner {
        width: 100%;
        height: auto;
    }

    main {
        padding: 0px 25px 15px;
        font-size: 1.1rem;
    }

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .collection-card img {
        width: auto;
        max-width: 85%;
        max-height: 400px;
        height: auto;
        margin: 20px auto 20px;
    }


   .collection-card:has(> img:last-child) {
    padding-bottom: 20px;
}

    .contact-options,
    .support-options {
        flex-direction: column;
        gap: 40px;
    }

    .contact-option a {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .paypal-link {
        padding-bottom: 0 !important;
    }

    .giftshop-card img {
        display: block;
        width: auto;
        max-width: 85%;
        max-height: 400px;
        height: auto;
        margin: 20px auto 25px;
    }
}



/* =========================================================
   THE FRAGGLE ARCHIVES
   GLOBAL EDITORIAL BUTTON SYSTEM
   =========================================================

   The Archives has outgrown the Giant Brown Pills.

   Buttons now behave like quiet institutional controls:
   restrained, archival, clearly clickable, and secondary
   to the stories, objects, and typography around them.

   PayPal custom elements are intentionally NOT targeted.
   Navigation links are intentionally NOT targeted.
   ========================================================= */


/* ---------------------------------------------------------
   STANDARD ARCHIVE ACTION
   --------------------------------------------------------- */

.button,
.home-door-link {
    display: inline-block;

    width: auto;
    max-width: 100%;

    margin-top: 20px;
    padding: 11px 20px;

    background: transparent;
    color: var(--archive-brown);

    border: 1px solid var(--archive-button-border);
    border-radius: 2px;

    font-family: Georgia, serif;
    font-size: 0.92rem;
    font-weight: bold;
    line-height: 1.25;

    letter-spacing: 0.055em;
    text-transform: uppercase;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


/* ---------------------------------------------------------
   STANDARD BUTTON HOVER
   --------------------------------------------------------- */

.button:hover,
.home-door-link:hover {
    background: var(--archive-brown);
    color: var(--archive-cream);

    border-color: var(--archive-brown);

    text-decoration: none;

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   KEYBOARD ACCESSIBILITY
   --------------------------------------------------------- */

.button:focus-visible,
.home-door-link:focus-visible {
    outline: 2px solid var(--archive-brown);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   ORDINARY HTML BUTTONS

   These include catalogue/filter controls.

   They keep their own active-state colours where those
   already exist, but lose the giant capsule shape.
   --------------------------------------------------------- */

button:not(paypal-button),
input[type="submit"],
input[type="button"] {
    border-radius: 2px;
}


/* ---------------------------------------------------------
   CATALOGUE / FILTER CONTROLS

   Smaller than major navigation actions because these
   control a page rather than lead somewhere new.
   --------------------------------------------------------- */

.catalogue-mode,
.catalogue-filter,
.collect-filter {
    padding: 9px 15px;

    border-radius: 2px;

    font-family: Georgia, serif;
    font-size: 0.82rem;
    font-weight: bold;

    letter-spacing: 0.055em;
    text-transform: uppercase;

    background: transparent;
    color: var(--archive-brown);

    border: 1px solid var(--archive-border);

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}


/* Filter hover */

.catalogue-mode:hover,
.catalogue-filter:hover,
.collect-filter:hover {
    background: rgba(58, 48, 40, 0.05);

    color: var(--archive-brown);

    border-color: var(--archive-brown);
}


/* Active filter */

.catalogue-mode.active,
.catalogue-filter.active,
.collect-filter.active {
    background: var(--archive-brown);
    color: var(--archive-cream);

    border-color: var(--archive-brown);
}


/* ---------------------------------------------------------
   CARD / HUB BUTTONS

   Gift Shop, Museum and similar institutional cards.

   Existing layout rules still control their position;
   this block controls only their visual language.
   --------------------------------------------------------- */

.giftshop-hub-button,
.museum-wing-button {
    padding: 10px 18px;

    font-size: 0.86rem;
    letter-spacing: 0.06em;
}


/* ---------------------------------------------------------
   HOMEPAGE DOOR LINKS

   These used to be especially large dark pills.
   Now they behave like little museum navigation labels.
   --------------------------------------------------------- */

.home-door-link {
    align-self: center;

    margin-top: auto;

    padding: 10px 18px;

    background: transparent;
    color: var(--archive-brown);

    border: 1px solid var(--archive-button-border);
    border-radius: 2px;

    font-size: 0.84rem;
    letter-spacing: 0.07em;
}


/* ---------------------------------------------------------
   BOOK PURCHASE LINKS

   Preserve their centred purchase layout without making
   them visually louder than the book itself.
   --------------------------------------------------------- */

.book-buy .button {
    padding: 11px 20px;

    font-size: 0.88rem;
}


/* ---------------------------------------------------------
   SUPPORT / CONTACT ACTIONS
   --------------------------------------------------------- */

.support-action .button,
.contact-page .button {
    padding: 11px 20px;
}


/* ---------------------------------------------------------
   OPTIONAL PRIMARY ACTION

   Available anywhere we deliberately WANT one stronger
   action in the future.

   Usage:
   class="button button-primary"

   We do not automatically make everything primary.
   --------------------------------------------------------- */

.button.button-primary {
    background: var(--archive-brown);
    color: var(--archive-cream);

    border-color: var(--archive-brown);
}

.button.button-primary:hover {
    background: var(--archive-brown-hover);
    color: var(--archive-cream);

    border-color: var(--archive-brown-hover);
}


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

   Do NOT automatically turn every button into a giant
   full-width bar.

   Some existing page-specific rules request full width;
   those can remain where useful.
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .button,
    .home-door-link {
        padding: 10px 17px;

        font-size: 0.84rem;
        letter-spacing: 0.05em;
    }


    .catalogue-mode,
    .catalogue-filter,
    .collect-filter {
        padding: 8px 12px;

        font-size: 0.76rem;
        letter-spacing: 0.045em;
    }


    .giftshop-hub-button,
    .museum-wing-button {
        font-size: 0.82rem;
    }

}
