/* ==========================================================================
   FIDES IN REALITY — PUBLIC WEBSITE
========================================================================== */

/* 1. Design tokens */
:root {
    --navy: #071722;
    --gold: #d4a437;
    --cream: #f8f5ef;
    --ink: #1e1e1e;
}

/* 2. Reset & global */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, sans-serif; }
body.menu-locked { overflow: hidden; }

/* 3. Accessibility */
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1200; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* 4. Site header */
.site-header { 
    height: 76px; 
    padding: 0 clamp(18px, 4vw, 56px); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background: var(--navy); color: #fff;
    position: sticky;
    top: 0; 
    z-index: 100;
    isolation: isolate;
}

#main-content {
    text-align: center;
    align-items: center;
}
/* 5. Brand / logo */
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; color: #fff; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px; overflow: hidden; border: 1px solid rgba(212, 164, 55, .55); border-radius: 10px; background: #fff; box-shadow: 0 5px 18px rgba(0, 0, 0, .2); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.brand strong,
.drawer-brand strong { display: block; font-family: Georgia, serif; letter-spacing: .08em; }
.brand small,
.drawer-brand small { display: block; font-size: 10px; letter-spacing: .22em; margin-top: 3px; }

/* 6. Desktop navigation */
.desktop-nav { display: none; align-items: center; gap: clamp(12px, 1.7vw, 25px); }
.desktop-nav a { color: #e9e1d4; text-decoration: none; font-size: 13px; letter-spacing: .04em; }
.desktop-nav a:hover,
.desktop-nav a:focus { color: var(--gold); }

/* 7. Mobile menu controls */
.menu-open,
.menu-close { border: 0; background: transparent; color: var(--gold); font-size: 32px; cursor: pointer; }
.menu-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .58); backdrop-filter: blur(2px); z-index: 900; }
.mobile-menu { position: fixed; z-index: 1000; top: 0; right: 0; width: min(88vw, 390px); height: 100dvh; padding: 24px; background: linear-gradient(160deg, #06131d, #0b1d28 65%, #16120c); color: #fff; box-shadow: -24px 0 60px rgba(0, 0, 0, .35); transform: translateX(105%); transition: transform .32s ease; overflow: auto; }
.mobile-menu.open { transform: translateX(0); }
.menu-close { display: block; margin-left: auto; font-size: 42px; line-height: 1; }
.drawer-brand { padding: 12px 8px 28px; border-bottom: 1px solid rgba(212, 164, 55, .35); }
.mobile-menu nav { display: grid; padding: 18px 0; }
.mobile-menu nav a { padding: 16px 10px; color: #fff; text-decoration: none; font-family: Georgia, serif; font-size: 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mobile-menu nav a:hover,
.mobile-menu nav a:focus { color: var(--gold); }
.drawer-tagline { margin: 24px 10px 0; color: var(--gold); font-family: Georgia, serif; font-size: 14px; letter-spacing: .08em; }

/* 8. Homepage hero */
.hero { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 42px 22px; background: radial-gradient(circle at 70% 25%, #183346 0, #071722 48%, #03090d 100%); color: #fff; text-align: center; }
.hero-inner { max-width: 800px; }
.eyebrow { color: var(--gold); letter-spacing: .25em; text-transform: uppercase; font-weight: 800; font-size: 2rem; }
.hero h1 { font: clamp(44px, 8vw, 88px)/.95 Georgia, serif; margin: 18px 0; }
.hero p { font: 20px/1.7 Georgia, serif; color: #e9e1d4; }
.gold-line { width: 70px; height: 2px; background: var(--gold); margin: 26px auto; }
.stage-note { margin-top: 28px; font-size: 13px; opacity: .72; }

/* 9. Standard public pages */
.page-shell { width: min(1100px, calc(100% - 40px)); min-height: calc(100vh - 210px); margin: 0 auto; padding: clamp(70px, 10vw, 130px) 0; }
.page-shell h1 { margin: 12px 0 18px; font: clamp(42px, 7vw, 76px)/1 Georgia, serif; color: var(--navy); }
.page-shell .eyebrow { color: #9b741f; letter-spacing: .22em; text-transform: uppercase; font-size: 12px; }
.gold-line.left { margin: 24px 0; }
.lead { max-width: 760px; font: clamp(18px, 2.3vw, 23px)/1.7 Georgia, serif; color: #4b4842; }
.foundation-placeholder { max-width: 720px; margin-top: 34px; padding: 18px 20px; border-left: 2px solid var(--gold); background: #fff; color: #615d56; line-height: 1.7; }
.error-shell { text-align: center; }
.error-shell .gold-line { margin-left: auto; margin-right: auto; }
.text-link { color: #805f17; text-underline-offset: 4px; }

/* 10. Stage 3 — About / identity */
.about-layout { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(34px, 7vw, 80px); align-items: start; margin-top: 44px; }
.about-portrait { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #e9e2d6; border: 1px solid #ddd2c0; box-shadow: 0 22px 55px rgba(7, 23, 34, .12); }
.about-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-title { margin: 0 0 18px; color: #9b741f; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.about-copy .lead { margin-top: 0; }
.about-biography { margin-top: 30px; max-width: 760px; color: #45413b; font: 17px/1.9 Georgia, serif; }
.about-details { margin-top: 70px; padding-top: 34px; border-top: 1px solid #d9d0c2; }
.about-details h2 { margin: 0 0 24px; color: var(--navy); font: 32px Georgia, serif; }
.about-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.about-detail-grid p { margin: 0; padding: 18px; background: #fff; border: 1px solid #e3dbcf; }
.about-detail-grid strong,
.about-detail-grid span,
.about-detail-grid a { display: block; }
.about-detail-grid strong { margin-bottom: 7px; color: #8a681d; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.about-detail-grid a { color: var(--navy); overflow-wrap: anywhere; }
.about-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.about-socials a { padding: 10px 14px; border: 1px solid #c8b98f; color: var(--navy); text-decoration: none; background: #fff; }
.about-socials a:hover,
.about-socials a:focus { border-color: var(--gold); color: #765612; }

/* 11. Site footer */
.site-footer { display: grid; gap: 8px; text-align: center; padding: 34px 20px; background: #03090d; color: #fff; }
.site-footer span { color: var(--gold); font-family: Georgia, serif; }
.site-footer small { opacity: .65; }
.footer-admin-link { color: inherit; text-decoration: none; }

/* 12. Desktop breakpoint */
@media (min-width: 900px) {
    .desktop-nav { display: flex; }
    .menu-open { display: none; }
    .site-header::after { content: none; }
}

/* 13. Tablet / narrow layout */
@media (max-width: 760px) {
    .about-layout { grid-template-columns: 1fr; }
    .about-portrait { width: min(100%, 380px); }
}

/* 14. Small mobile devices */
@media (max-width: 560px) {
    .site-header { height: 68px; padding-left: 14px; padding-right: 14px; }
    .brand { gap: 9px; }
    .brand-mark { width: 50px; height: 50px; flex-basis: 50px; border-radius: 8px; }
    .brand strong { font-size: 13px; letter-spacing: .06em; }
    .brand small { font-size: 8px; letter-spacing: .16em; }
    .menu-open { font-size: 29px; }
    .hero { min-height: calc(100vh - 68px); }
}
