/* ============================================================
   Root variables (GrailHeart palette)
   ============================================================ */

:root {
    --blood-red: #931a33;
    --gold: #e4c000;
    --menu-blue: #1e2c3c;
    --bg-white: #faf8ed;

    --text-main: #000;
    --text-muted: #444;
}

/* ============================================================
   Reset / Base
   ============================================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Caudex, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.4;
    background: #fff;          /* browser background */
    color: var(--text-main);   /* maximum contrast */
}

input[type="checkbox"] {
    accent-color: #888;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

@media (max-width: 768px) {

    .nav-toggle {
        display: block;
        color: var(--menu-blue);
    }

    .site-nav {
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 0.25rem 0;
    }
}


/* ============================================================
   Canvas (the world)
   ============================================================ */

.canvas {
    max-width: 1000px;
    min-height: max(1200px, 100vh);
    margin: 0 auto;
    background: var(--bg-white);
}

/* ============================================================
   Menu bar
   ============================================================ */

.menu-bar {
    background-color: #1f3a5f; /* ← restore your blue (adjust as needed) */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-inner {
    display: flex;
    align-items: center;          /* keeps nav vertically centered */
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
}

.site-title {
    display: flex;
    flex-direction: column;       /* stack title + motto */
    line-height: 1.1;
}

.site-title a {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.site-motto {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.75;
    white-space: nowrap;
    color: #fff;
}

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

.site-nav a {
    margin-left: 1.25rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--gold);
}
/* ============================================================
   Hero
   ============================================================ */

.hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Alternate hero proportions if needed */
.hero-page {
    aspect-ratio: 16 / 10;
}

/* ============================================================
   Content (reading column)
   ============================================================ */

.content {
    max-width: 48rem;
    margin: 2rem auto;
    padding: 0 ;
}

@media (max-width: 600px) {
    .content {
        padding: 0 1.25rem;
    }
}


/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

h1 {
    font-size: 2.2rem;
    margin-top: 0;
}

h2 {
    margin-top: 2.5rem;
}

p {
    margin: 1.2rem 0;
}

em, i {
    font-style: italic;
}

/* ============================================================
   Links
   ============================================================ */

a {
    color: var(--blood-red);
}

a:hover {
    color: var(--gold);
}

/*.dropcap {*/
/*    float:left;*/
/*    color: var(--blood-red);*/
/*    font-size: 60px;*/
/*    line-height: 60px;*/
/*    padding-top: 1px;*/
/*    padding-right: 4px;*/
/*}*/

.dropcap {
    float: left;
    margin: 0.1em 0.4em 0 0;
    line-height: 1;
}

.dropcap img {
    height: 4.1em;     /* single authoritative size */
    width: auto;
    display: block;
}

.donate-button {
    display: inline-block;
    margin: 1.5rem 0;
    padding: 0.7rem 1.2rem;
    background: var(--menu-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1rem;
}

.donate-button:hover {
    background: var(--gold);
}

.donate-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* TEXTSEP */
.textsep {
    text-align: center;
    margin: 2.5rem 0;
}

.textsep img {
    max-height: 100px;
    width: auto;
    opacity: 0.9;
}

/*.textsep img {*/
/*    max-height: 100px;*/
/*    width: auto;*/
/*    opacity: 0.85;*/
/*    filter: saturate(0.9);*/
/*}*/


@media (max-width: 600px) {
    .textsep img {
        max-height: 70px;
    }
}

/* gh-image */
figure.gh-image {
    text-align: center;
    margin: 0.1em auto;
}

figure.gh-image img {
    display: inline-block;
}

figure.gh-image figcaption {
    margin-top: 0.0em;
    font-size: 0.8em;
    font-style: italic;
    color: #444;
}

/* ============================================================
   Mobile hamburger nav (authoritative override)
   ============================================================ */

@media (max-width: 768px) {

    .menu-bar {
        position: relative;
    }

    .nav-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: #fff;
        cursor: pointer;
        margin-left: auto;
    }

    .site-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        right: 0;
        background: #1f3a5f;
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
        z-index: 1000;
        min-width: 160px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }

    .site-nav.is-open {
        display: flex !important;
    }

    .site-nav a {
        margin: 0;
        color: #fff;
        white-space: nowrap;
    }

    .site-nav a:hover {
        color: var(--gold);
    }
}
