/* NCPHS "Archival Elegance" Theme
   Clean, restrained, authoritative typography with intentional whitespace.
   Inspired by museum publications and academic journals. */

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
    /* Heritage Color Palette - warm, natural tones */
    --color-navy: #1a2744;
    --color-navy-light: #2d3f5e;
    --color-purple: #3d2163;
    --color-purple-dark: #2a1645;
    --color-purple-light: #5a3a8a;

    /* Warm Neutrals */
    --color-white: #fff;
    --color-cream: #faf9f7;
    --color-warm-gray-50: #f7f6f4;
    --color-warm-gray-100: #f0eeeb;
    --color-warm-gray-200: #e8e4df;
    --color-warm-gray-300: #d4cfc8;
    --color-warm-gray-400: #a39e96;
    --color-warm-gray-600: #5c574f;
    --color-warm-gray-800: #2e2a25;

    /* Accent Colors */
    --color-antique-gold: #8b6f47;
    --color-antique-gold-light: #c9a96e;
    --color-accent-blue: #eef0f5;
    --color-accent-purple: #f0ecf5;

    /* Typography */
    --font-family-base: "Iowan Old Style", "Palatino Linotype", palatino, georgia, serif;
    --font-family-heading: "Playfair Display", georgia, "Times New Roman", serif;
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.8125rem;    /* 13px */
    --font-size-base: 1.0625rem;  /* 17px */
    --font-size-lg: 1.1875rem;    /* 19px */
    --font-size-xl: 1.375rem;     /* 22px */
    --font-size-2xl: 1.625rem;    /* 26px */
    --font-size-3xl: 2rem;        /* 32px */
    --line-height-tight: 1.25;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.75;

    /* Spacing Scale */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */

    /* Border Radius */
    --radius-sm: 0.1875rem;  /* 3px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */

    /* Shadows - softer, warmer */
    --shadow-sm: 0 1px 3px 0 rgba(26, 39, 68, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(26, 39, 68, 0.08);
    --shadow-lg: 0 8px 24px -4px rgba(26, 39, 68, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Layout */
    --max-width-content: 1180px;
    --sidebar-width: 220px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    color: var(--color-navy);
    background-color: var(--color-cream);
    line-height: var(--line-height-relaxed);
}

/* ========================================
   Container
   ======================================== */
.container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Header
   ======================================== */
.container > header {
    background: var(--color-navy);
    text-align: center;
    padding: var(--space-10) var(--space-6) var(--space-8);
    border-bottom: 3px solid var(--color-antique-gold);
}

.header-title {
    margin-bottom: var(--space-2);
}

.header-title h1 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    letter-spacing: 0.02em;
    line-height: var(--line-height-tight);
}

.header-title h1 a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.header-title h1 a:hover {
    opacity: 0.85;
}

.header-tagline {
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm);
    color: var(--color-antique-gold-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: var(--space-3) 0 0;
    font-weight: 400;
}

/* ========================================
   Top Navigation
   ======================================== */
.top-nav {
    background: var(--color-navy);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.top-nav li {
    margin: 0;
}

.top-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: var(--space-4) var(--space-5);
    font-size: var(--font-size-base);
    font-weight: 500;
    display: block;
    transition: color var(--transition-fast), background-color var(--transition-fast);
    position: relative;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-antique-gold-light);
    transition: width var(--transition-base), left var(--transition-base);
}

.top-nav a:hover,
.top-nav a:focus {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.08);
    outline: none;
}

.top-nav a:hover::after,
.top-nav a:focus::after {
    width: 60%;
    left: 20%;
}

.top-nav a.active {
    color: var(--color-white);
    font-weight: 600;
}

.top-nav a.active::after {
    width: 60%;
    left: 20%;
    background: var(--color-antique-gold);
}

/* ========================================
   Main Content Area
   ======================================== */
.main-content {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 0;
    min-height: 600px;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    background: var(--color-warm-gray-100);
    padding: var(--space-8) var(--space-5);
    border-right: 1px solid var(--color-warm-gray-200);
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-antique-gold);
}

.sidebar-logo {
    text-align: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-warm-gray-200);
}

.sidebar-logo .logo-image {
    width: 110px;
    height: auto;
    max-width: 100%;
    opacity: 0.9;
    transition: opacity var(--transition-base);
}

.sidebar-logo .logo-image:hover {
    opacity: 1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.sidebar-nav a {
    color: var(--color-purple);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    padding: var(--space-3) var(--space-4);
    display: block;
    font-size: var(--font-size-base);
    font-weight: 600;
    transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
    color: var(--color-antique-gold);
    text-decoration-color: var(--color-antique-gold);
    border-left-color: var(--color-antique-gold);
    background-color: var(--color-accent-purple);
    outline: none;
}

.sidebar-nav a.active {
    color: var(--color-purple);
    border-left-color: var(--color-antique-gold);
    font-weight: 600;
}

/* ========================================
   Main Content
   ======================================== */
.content {
    padding: var(--space-10) var(--space-12);
    background: var(--color-white);
}

/* Home page: hide the h1 since the header masthead already identifies the site */
.page-home .content h1 {
    display: none;
}

/* Typography */
.content h1 {
    color: var(--color-navy);
    font-family: var(--font-family-heading);
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-8);
    font-weight: 700;
    line-height: var(--line-height-tight);
    border-bottom: 1px solid var(--color-warm-gray-200);
    padding-bottom: var(--space-4);
}

.content h2 {
    color: var(--color-navy);
    font-family: var(--font-family-heading);
    font-size: var(--font-size-2xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-5);
    font-weight: 700;
    line-height: var(--line-height-tight);
    padding-left: var(--space-4);
    border-left: 3px solid var(--color-antique-gold);
}

.content h3 {
    color: var(--color-navy);
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    font-weight: 700;
    line-height: var(--line-height-tight);
}

.content h4 {
    color: var(--color-navy);
    font-size: var(--font-size-lg);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    font-weight: 700;
    line-height: var(--line-height-normal);
}

.content p {
    margin-bottom: var(--space-5);
    color: var(--color-navy);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.content a {
    color: var(--color-purple);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: var(--color-purple);
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.content a:hover,
.content a:focus {
    color: var(--color-antique-gold);
    text-decoration-color: var(--color-antique-gold);
    text-decoration-thickness: 3px;
    outline: none;
}

.content ul,
.content ol {
    margin-left: var(--space-8);
    margin-bottom: var(--space-6);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.content li {
    margin-bottom: var(--space-3);
}

.content blockquote {
    margin: var(--space-8) 0;
    padding: var(--space-6) var(--space-8);
    border-left: 3px solid var(--color-antique-gold);
    background-color: var(--color-warm-gray-50);
    font-style: italic;
    color: var(--color-warm-gray-800);
}

.content strong,
.content b {
    font-weight: 700;
}

.content em,
.content i {
    font-style: italic;
}

.content hr {
    border: none;
    border-top: 1px solid var(--color-warm-gray-200);
    margin: var(--space-10) 0;
}

/* ========================================
   Content Pages (card-free design)
   ======================================== */
.home-content,
.single-page {
    background-color: transparent;
    padding: 0;
}

/* Society introduction section on home page */
.society-introduction {
    background: var(--color-warm-gray-50);
    padding: var(--space-8);
    margin: var(--space-6) 0 var(--space-10);
    border: 1px solid var(--color-warm-gray-200);
    border-radius: var(--radius-md);
}

.society-introduction p {
    margin-bottom: var(--space-4);
    line-height: var(--line-height-relaxed);
    color: var(--color-navy);
}

.society-introduction p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Latest News Section
   ======================================== */
.latest-news {
    margin-top: var(--space-12);
}

.latest-news h2 {
    margin-top: 0;
    color: var(--color-navy);
}

/* News items */
.news-item {
    margin-bottom: var(--space-6);
    padding: var(--space-6);
    padding-left: var(--space-6);
    border-left: 3px solid var(--color-antique-gold);
    border-bottom: 1px solid var(--color-warm-gray-200);
    background: var(--color-warm-gray-50);
}

.news-item:last-of-type {
    border-bottom: none;
}

.news-item h2 {
    margin-top: 0;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-xl);
    color: var(--color-navy);
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: var(--line-height-tight);
    border-left: none;
    padding-left: 0;
}

.news-item h2 a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.news-item h2 a:hover,
.news-item h2 a:focus {
    color: var(--color-antique-gold);
    outline: none;
}

.news-item time {
    display: block;
    font-size: var(--font-size-base);
    color: var(--color-warm-gray-600);
    font-style: italic;
    margin-bottom: var(--space-4);
}

.news-summary {
    margin-bottom: var(--space-4);
    line-height: var(--line-height-relaxed);
}

.read-more {
    display: inline-block;
    color: var(--color-purple);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-size: var(--font-size-base);
    transition: color var(--transition-fast);
}

.read-more:hover,
.read-more:focus {
    color: var(--color-antique-gold);
    text-decoration-color: var(--color-antique-gold);
    outline: none;
}

.view-all-news {
    margin-top: var(--space-8);
    text-align: center;
}

.view-all-news a {
    display: inline-block;
    color: var(--color-white);
    background: var(--color-navy);
    padding: var(--space-3) var(--space-8);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color var(--transition-base);
}

.view-all-news a:hover,
.view-all-news a:focus {
    background-color: var(--color-purple);
    outline: none;
}

/* News list page */
.news-list {
    max-width: 800px;
}

/* Individual news post */
.news-post {
    padding: 0;
}

.news-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-warm-gray-200);
}

.news-header h1 {
    margin-bottom: var(--space-3);
    border-bottom: none;
    padding-bottom: 0;
}

.news-header time {
    display: block;
    font-size: var(--font-size-base);
    color: var(--color-warm-gray-600);
    font-style: italic;
}

.news-content {
    margin-bottom: var(--space-8);
}

.news-footer {
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-warm-gray-200);
}

.news-footer a {
    color: var(--color-purple);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.news-footer a:hover,
.news-footer a:focus {
    color: var(--color-antique-gold);
    text-decoration: underline;
}

/* ========================================
   Newsletters Section
   ======================================== */
.newsletter-list {
    max-width: 800px;
}

.newsletter-item {
    margin-bottom: var(--space-6);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--color-warm-gray-200);
}

.newsletter-item:last-child {
    border-bottom: none;
}

.newsletter-item h2 {
    margin-top: 0;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-xl);
    color: var(--color-navy);
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: var(--line-height-tight);
    border-left: none;
    padding-left: 0;
}

.newsletter-item h2 a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.newsletter-item h2 a:hover,
.newsletter-item h2 a:focus {
    color: var(--color-antique-gold);
    outline: none;
}

.newsletter-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-base);
    color: var(--color-warm-gray-600);
    font-style: italic;
    margin-bottom: var(--space-4);
}

.newsletter-meta .pdf-link a {
    color: var(--color-purple);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.newsletter-meta .pdf-link a:hover,
.newsletter-meta .pdf-link a:focus {
    color: var(--color-antique-gold);
    text-decoration: underline;
}

.newsletter-summary {
    margin-bottom: var(--space-4);
    line-height: var(--line-height-relaxed);
}

/* Individual newsletter post */
.newsletter-post {
    padding: 0;
}

.newsletter-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-warm-gray-200);
}

.newsletter-header h1 {
    margin-bottom: var(--space-3);
    border-bottom: none;
    padding-bottom: 0;
}

.newsletter-header .newsletter-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: 0;
}

.newsletter-header .pdf-download {
    margin-left: auto;
}

.newsletter-header .button-link {
    display: inline-block;
    padding: var(--space-2) var(--space-5);
    background: var(--color-navy);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    letter-spacing: 0.04em;
    transition: background-color var(--transition-base);
}

.newsletter-header .button-link:hover,
.newsletter-header .button-link:focus {
    background: var(--color-purple);
    outline: none;
}

.newsletter-content {
    margin-bottom: var(--space-8);
}

.newsletter-footer {
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-warm-gray-200);
}

.newsletter-footer a {
    color: var(--color-purple);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.newsletter-footer a:hover,
.newsletter-footer a:focus {
    color: var(--color-antique-gold);
    text-decoration: underline;
}

/* Home page church image */
.home-church-image {
    margin: var(--space-12) 0 0;
    padding: 0;
    text-align: center;
}

.home-church-image img {
    width: 100%;
    max-width: 589px;
    height: auto;
    border: 1px solid var(--color-warm-gray-200);
    cursor: default;
}

.home-church-image figcaption {
    margin-top: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--color-warm-gray-600);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* ========================================
   Photo Gallery (from photos page)
   ======================================== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
    margin: var(--space-8) 0;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-warm-gray-200);
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    cursor: pointer;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 39, 68, 0.9), transparent);
    color: white;
    padding: 2.5rem var(--space-4) var(--space-3);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

/* ========================================
   Footer
   ======================================== */
.container > footer {
    margin-top: 0;
    padding: var(--space-10) var(--space-8);
    text-align: center;
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
}

.container > footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.container > footer a:hover {
    color: var(--color-white);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-address {
    font-size: var(--font-size-base);
    font-style: normal;
    margin-bottom: var(--space-4);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    list-style: none;
    margin: 0 0 var(--space-5);
    padding: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    font-size: var(--font-size-base);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.copyright {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin: 0;
}

/* ========================================
   Images
   ======================================== */
.content img {
    cursor: pointer;
    max-width: 100%;
    height: auto;
    display: block;
    margin: var(--space-8) auto;
    border: 1px solid var(--color-warm-gray-200);
}

.content figcaption {
    text-align: center;
    margin-top: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--color-warm-gray-600);
    font-style: italic;
}

/* ========================================
   Lightbox (GLightbox)
   ======================================== */
.goverlay {
    background: rgba(26, 39, 68, 0.95) !important;
}

.gclose,
.gnext,
.gprev {
    color: var(--color-white) !important;
    transition: color var(--transition-fast) !important;
}

.gclose:hover,
.gnext:hover,
.gprev:hover {
    color: var(--color-antique-gold-light) !important;
}

/* ========================================
   Mobile Menu Toggle Button
   ======================================== */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop - only shows on mobile */
}

.hamburger-icon {
    display: block;
    width: 28px;
    height: 28px;
    color: var(--color-white);
    stroke: var(--color-white);
}

/* ========================================
   Mobile Menu Overlay & Panel
   ======================================== */
.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 39, 68, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow-y: auto;
    transition: left var(--transition-slow);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) var(--space-5);
    background: var(--color-navy);
}

.mobile-menu-header h2 {
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: 2px solid var(--color-white);
}

.mobile-menu-content {
    padding: var(--space-5);
}

.mobile-nav-section {
    margin-bottom: var(--space-6);
}

.mobile-nav-section h3 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-base);
    color: var(--color-warm-gray-600);
    margin: 0 0 var(--space-3) 0;
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-warm-gray-200);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.mobile-nav-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-section li {
    margin-bottom: 0;
}

.mobile-nav-section a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--color-navy);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.mobile-nav-section a:hover,
.mobile-nav-section a:focus {
    color: var(--color-purple);
    border-left-color: var(--color-purple);
    background: var(--color-accent-purple);
}

.mobile-nav-section a.active {
    color: var(--color-purple);
    border-left-color: var(--color-antique-gold);
    font-weight: 600;
}

/* ========================================
   Accessibility
   ======================================== */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-navy);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--color-purple);
    outline-offset: 2px;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-purple);
    outline-offset: 2px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (width <= 968px) {
    :root {
        --sidebar-width: 190px;
    }

    .content {
        padding: var(--space-8) var(--space-8);
    }

    .content h1 {
        font-size: var(--font-size-2xl);
    }

    .content h2 {
        font-size: var(--font-size-xl);
    }

}

@media (width <= 768px) {
    /* Show mobile menu components */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: var(--space-4);
        left: var(--space-4);
        z-index: 1000;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: var(--radius-md);
        padding: var(--space-3);
        cursor: pointer;
        transition: all var(--transition-base);
        -webkit-tap-highlight-color: rgba(61, 33, 99, 0.3);
        touch-action: manipulation;
        user-select: none;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus {
        background: rgba(255, 255, 255, 0.25);
        outline: 2px solid var(--color-antique-gold-light);
        outline-offset: 2px;
    }

    .mobile-menu-toggle:active {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-overlay,
    .mobile-menu {
        display: block;
    }

    /* Hide desktop navigation */
    .top-nav {
        display: none;
    }

    .container > header {
        padding: var(--space-5) var(--space-4);
        padding-left: 60px; /* Make room for hamburger button */
        position: relative;
    }

    .header-title {
        margin-bottom: 0;
    }

    .header-title h1 {
        font-size: var(--font-size-xl);
    }

    .header-tagline {
        font-size: var(--font-size-xs);
        letter-spacing: 0.08em;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    /* Hide desktop sidebar navigation */
    .sidebar {
        display: none;
    }

    .content {
        padding: var(--space-6) var(--space-5);
    }

    .content h1 {
        font-size: var(--font-size-xl);
    }

    .content h2 {
        font-size: var(--font-size-lg);
    }

    /* Photo gallery responsive */
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-4);
    }

    .photo-item img {
        height: 250px;
    }
}

@media (width <= 480px) {
    /* Mobile menu toggle positioning */
    .mobile-menu-toggle {
        top: var(--space-3);
        left: var(--space-2);
        padding: var(--space-2);
    }

    .hamburger-icon {
        width: 24px;
        height: 24px;
    }

    /* Mobile menu sizing */
    .mobile-menu {
        width: 90%;
        max-width: 280px;
    }

    .mobile-menu-header {
        padding: var(--space-4) var(--space-4);
    }

    .mobile-menu-header h2 {
        font-size: var(--font-size-lg);
    }

    .mobile-menu-content {
        padding: var(--space-4);
    }

    .container > header {
        padding: var(--space-4) var(--space-3);
        padding-left: 50px; /* Make room for hamburger button */
    }

    .header-title h1 {
        font-size: var(--font-size-lg);
    }

    .content {
        padding: var(--space-4) var(--space-3);
    }

    .home-content,
    .single-page {
        padding: 0;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .top-nav,
    .sidebar,
    .container > footer {
        display: none;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .content {
        background: none;
        box-shadow: none;
    }

    .content a {
        text-decoration: underline;
        color: var(--color-navy);
    }

    .content a[href]::after {
        content: " (" attr(href) ")";
        font-size: var(--font-size-xs);
    }
}
