/*
Theme Name: Airship Angels Theme
Theme URI: https://airshipangels.com
Author: Airship Captain
Author URI: https://airshipangels.com
Description: A custom Skeuomorphic Steampunk theme for Airship Angels - "The Living Airship" experience.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: airship-angels
*/

/* ============================================
   1. CSS VARIABLES & COLOR PALETTE
   ============================================ */
:root {
    /* Primary Materials */
    --brass-light: #E5C555;
    --brass-dark: #B5A642;
    --brass-antique: #C9A227;
    --copper: #B87333;
    --copper-oxidized: #427068;
    --leather: #6D4C41;
    --leather-dark: #5D4037;
    --iron: #2F353B;
    --iron-dark: #1a1e22;
    --parchment: #FDF5E6;
    --parchment-aged: #F4E4C9;
    
    /* Sky Palette */
    --sky-light: #87CEEB;
    --sky-deep: #2F4F4F;
    --sky-gradient: linear-gradient(180deg, #87CEEB 0%, #5F9EA0 50%, #2F4F4F 100%);
    
    /* Villain Accent */
    --verdant-glow: #39FF14;
    --biomass-dark: #1B4D1B;
    
    /* Character Accents */
    --acc-sarka: #87CEEB;
    --acc-sarka-dark: #4A708B;
    --acc-lena: #228B22;
    --acc-lena-copper: #B87333;
    --acc-mei: #E0FFFF;
    --acc-mei-grey: #708090;
    --acc-kieran: #FFBF00;
    --acc-kieran-silver: #C0C0C0;
    --acc-mari: #FF6F61;
    --acc-mari-teal: #20B2AA;
    
    /* UI Colors */
    --glow-amber: rgba(255, 191, 0, 0.4);
    --glow-brass: rgba(181, 166, 66, 0.5);
    --shadow-deep: rgba(0, 0, 0, 0.7);
    --glass-tint: rgba(200, 220, 230, 0.1);
    
    /* Typography */
    --font-head: 'Rye', 'Georgia', serif;
    --font-body: 'Lora', 'Georgia', serif;
    --font-ui: 'Courier Prime', 'Courier New', monospace;
    --font-handwritten: 'Cedarville Cursive', cursive;
    
    /* Spacing */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 40px;
    --space-xl: 60px;
    
    /* Transitions */
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   2. BASE RESET & FOUNDATION
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--iron-dark);
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1.5" fill="%23333"/></svg>'),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(47, 53, 59, 0.3) 10px,
            rgba(47, 53, 59, 0.3) 20px
        );
    background-size: 60px 60px, auto;
    font-family: var(--font-body);
    color: var(--iron);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    font-size: 17px;
    min-height: 100vh;
}

/* Custom Scrollbar - Brass Piston */
::-webkit-scrollbar {
    width: 16px;
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a, #1a1a1a);
    border-left: 2px solid var(--brass-dark);
    border-right: 2px solid var(--brass-dark);
}

::-webkit-scrollbar-track {
    background: 
        repeating-linear-gradient(
            180deg,
            rgba(181, 166, 66, 0.1) 0px,
            rgba(181, 166, 66, 0.1) 2px,
            transparent 2px,
            transparent 10px
        ),
        linear-gradient(90deg, #1a1a1a, #2a2a2a, #1a1a1a);
    border: 2px solid var(--brass-dark);
    border-radius: 0;
}

::-webkit-scrollbar-thumb {
    background: 
        linear-gradient(180deg, 
            var(--brass-light) 0%, 
            var(--brass-dark) 20%, 
            var(--brass-antique) 50%, 
            var(--brass-dark) 80%, 
            var(--brass-light) 100%
        );
    border: 2px solid var(--leather);
    border-radius: 4px;
    box-shadow: 
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        0 0 5px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: 
        linear-gradient(180deg, 
            #f0d878 0%, 
            var(--brass-light) 20%, 
            #d4c055 50%, 
            var(--brass-light) 80%, 
            #f0d878 100%
        );
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--brass-dark) var(--iron-dark);
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--leather);
    margin: 0 0 var(--space-md);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 var(--space-md);
}

a {
    color: var(--copper);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

a:hover {
    color: var(--brass-light);
    text-shadow: 0 0 8px var(--glow-amber);
}

blockquote {
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
    color: var(--leather-dark);
    border-left: 4px solid var(--brass-antique);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    background: 
        linear-gradient(135deg, rgba(244, 228, 201, 0.5) 0%, rgba(253, 245, 230, 0.3) 100%);
    position: relative;
}

blockquote::before {
    content: '"';
    font-family: var(--font-head);
    font-size: 4rem;
    color: var(--brass-dark);
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.4;
}

code, pre {
    font-family: var(--font-ui);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--brass-dark);
    border-radius: 3px;
    padding: 2px 6px;
}

pre {
    padding: var(--space-md);
    overflow-x: auto;
}

/* ============================================
   4. LAYOUT CONTAINERS
   ============================================ */
.site-content {
    min-height: calc(100vh - 200px);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: var(--space-lg) auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1400px;
}

/* ============================================
   5. THE STEAMPUNK PANEL (Primary Skeuomorphic Box)
   ============================================ */
.steampunk-panel {
    background: var(--parchment);
    border: 4px solid var(--brass-dark);
    border-radius: 6px;
    box-shadow: 
        inset 0 0 80px rgba(139, 69, 19, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        0 0 0 6px var(--leather),
        0 0 0 8px var(--brass-antique),
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3);
    padding: var(--space-lg);
    position: relative;
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

/* Parchment texture overlay */
.steampunk-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.steampunk-panel > * {
    position: relative;
    z-index: 1;
}

/* Corner Rivets */
.steampunk-panel .rivet {
    position: absolute;
    width: 18px;
    height: 18px;
    background: 
        radial-gradient(circle at 35% 35%, 
            #fff 0%, 
            var(--brass-light) 20%, 
            var(--brass-dark) 60%, 
            var(--leather) 100%
        );
    border-radius: 50%;
    box-shadow: 
        1px 2px 3px rgba(0, 0, 0, 0.5),
        inset -1px -1px 2px rgba(0, 0, 0, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.steampunk-panel .rivet-tl { top: 12px; left: 12px; }
.steampunk-panel .rivet-tr { top: 12px; right: 12px; }
.steampunk-panel .rivet-bl { bottom: 12px; left: 12px; }
.steampunk-panel .rivet-br { bottom: 12px; right: 12px; }

/* Auto-generate corner rivets with pseudo-elements for panels without manual rivets */
.steampunk-panel.with-rivets::before,
.steampunk-panel.with-rivets::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: 
        radial-gradient(circle at 35% 35%, 
            #fff 0%, 
            var(--brass-light) 20%, 
            var(--brass-dark) 60%, 
            var(--leather) 100%
        );
    border-radius: 50%;
    box-shadow: 
        1px 2px 3px rgba(0, 0, 0, 0.5),
        inset -1px -1px 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.steampunk-panel.with-rivets::before {
    top: 12px;
    left: 12px;
}

.steampunk-panel.with-rivets::after {
    top: 12px;
    right: 12px;
}

/* Glass Panel Variant */
.glass-panel {
    background: 
        linear-gradient(135deg, 
            rgba(200, 220, 230, 0.15) 0%, 
            rgba(180, 200, 210, 0.08) 50%,
            rgba(160, 180, 190, 0.12) 100%
        );
    border: 3px solid var(--brass-dark);
    border-radius: 8px;
    box-shadow: 
        inset 0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 4px var(--iron),
        0 10px 30px rgba(0, 0, 0, 0.3);
    padding: var(--space-lg);
    backdrop-filter: blur(5px);
    position: relative;
}

.glass-panel h1,
.glass-panel h2,
.glass-panel h3,
.glass-panel p {
    color: var(--parchment);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   6. SITE HEADER (The Cockpit)
   ============================================ */
.site-header {
    background: url('assets/images/header-bkg.png') center center no-repeat;
    background-size: 100% 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6));
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    position: relative;
    min-height: 70px;
}

/* Decorative Pipes - Hidden when using header-bkg.png */
.header-pipe {
    display: none;
}

/* Site Branding - Logo with integrated nameplate */
.site-branding {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.site-logo-link {
    display: block;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.site-logo-image {
    display: block;
    height: 55px;
    width: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    transition: var(--transition-smooth);
}

.site-logo-link:hover .site-logo-image {
    filter: 
        drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4))
        brightness(1.05);
}

/* ============================================
   7. NAVIGATION - Toggle Switch Buttons
   ============================================ */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

/* Navigation Links - Toggle Switch Buttons */
.main-navigation li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.main-navigation li a::before {
    content: '';
    display: block;
    width: 90px;
    height: 45px;
    background: url('assets/images/toggle-off.png') center center no-repeat;
    background-size: contain;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
    transition: var(--transition-smooth);
}

.main-navigation li a .nav-text {
    font-family: var(--font-ui);
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    /* WCAG AA compliant: #FDF5E6 on dark wood = ~7:1 contrast ratio */
    color: var(--parchment);
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.7);
}

/* Hover state - Switch ON */
.main-navigation li a:hover::before {
    background-image: url('assets/images/toggle-on.png');
}

.main-navigation li a:hover .nav-text {
    color: var(--brass-light);
    transform: scale(1.05);
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(229, 197, 85, 0.6);
}

/* Active/Current page indicator - Switch ON */
.main-navigation li.current-menu-item > a::before,
.main-navigation li.current_page_item > a::before,
.main-navigation li.current-menu-ancestor > a::before,
.main-navigation li.current-page-ancestor > a::before,
.main-navigation li.current_page_ancestor > a::before,
.main-navigation li.current-post-ancestor > a::before,
.main-navigation li.current-menu-parent > a::before {
    background-image: url('assets/images/toggle-on.png');
}

.main-navigation li.current-menu-item > a .nav-text,
.main-navigation li.current_page_item > a .nav-text,
.main-navigation li.current-menu-ancestor > a .nav-text,
.main-navigation li.current-page-ancestor > a .nav-text,
.main-navigation li.current_page_ancestor > a .nav-text,
.main-navigation li.current-post-ancestor > a .nav-text,
.main-navigation li.current-menu-parent > a .nav-text {
    color: var(--brass-light);
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(229, 197, 85, 0.5);
}

/* Dropdown menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: 
        linear-gradient(180deg,
            rgba(109, 76, 65, 0.98) 0%,
            rgba(93, 64, 55, 0.98) 100%
        );
    border: 3px solid var(--brass-dark);
    border-radius: 8px;
    padding: var(--space-sm);
    min-width: 160px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex-direction: column;
    gap: 6px;
    z-index: 100;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul li a {
    flex-direction: row;
    padding: 10px 15px;
    border-radius: 4px;
}

.main-navigation ul ul li a::before {
    display: none;
}

.main-navigation ul ul li a .nav-text {
    color: var(--parchment);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.main-navigation ul ul li a:hover {
    background: rgba(181, 166, 66, 0.3);
}

.main-navigation ul ul li a:hover .nav-text {
    color: var(--brass-light);
    text-shadow: 0 0 8px rgba(229, 197, 85, 0.4);
}

/* Mobile Navigation Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: url('assets/images/toggle-off.png') center center no-repeat;
    background-size: contain;
    border: none;
    cursor: pointer;
    padding: 12px;
    gap: 5px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
    transition: var(--transition-smooth);
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
    background-image: url('assets/images/toggle-on.png');
}

.toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #4a3c2e;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.menu-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Header */
@media (max-width: 1100px) {
    .header-inner {
        padding: 10px 15px;
    }
    
    .main-navigation li a::before {
        width: 75px;
        height: 38px;
    }
    
    .main-navigation li a .nav-text {
        font-size: 0.75rem;
    }
    
    .site-logo-image {
        height: 48px;
    }
}

@media (max-width: 900px) {
    .site-header {
        background-size: auto 100%;
        background-position: left center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background: 
            linear-gradient(180deg,
                rgba(47, 53, 59, 0.98) 0%,
                rgba(26, 30, 34, 0.98) 100%
            );
        padding: var(--space-md);
        gap: 15px;
        border-top: 3px solid var(--brass-dark);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li a::before {
        width: 100px;
        height: 50px;
    }
    
    .main-navigation li a .nav-text {
        font-size: 0.75rem;
    }
    
    .site-logo-image {
        height: 42px;
    }
}

@media (max-width: 480px) {
    .site-logo-image {
        height: 36px;
    }
    
    .header-inner {
        padding: 8px 10px;
    }
}

/* ============================================
   8. DECORATIVE ELEMENTS - Gears & Pipes
   ============================================ */
/* Spinning Gear Background Element */
.gear-decor {
    position: fixed;
    pointer-events: none;
    opacity: 0.08;
    z-index: -1;
}

.gear-decor svg {
    fill: var(--brass-dark);
}

.gear-decor.gear-1 {
    top: 10%;
    left: -5%;
    width: 300px;
    height: 300px;
    animation: gear-spin 60s linear infinite;
}

.gear-decor.gear-2 {
    bottom: 5%;
    right: -3%;
    width: 200px;
    height: 200px;
    animation: gear-spin 45s linear infinite reverse;
}

.gear-decor.gear-3 {
    top: 40%;
    right: 5%;
    width: 150px;
    height: 150px;
    animation: gear-spin 30s linear infinite;
}

@keyframes gear-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll-driven gear animation class */
.gear-scroll {
    transition: transform 0.1s linear;
}

/* Vacuum Tube Glow */
.tube-glow {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--brass-dark);
    border-radius: 20px;
    color: var(--brass-light);
    text-shadow: 0 0 10px var(--glow-amber);
    box-shadow: 
        inset 0 0 20px rgba(255, 191, 0, 0.2),
        0 0 15px rgba(255, 191, 0, 0.1);
    animation: tube-flicker 3s ease-in-out infinite;
}

@keyframes tube-flicker {
    0%, 100% { text-shadow: 0 0 10px var(--glow-amber); }
    50% { text-shadow: 0 0 15px var(--glow-amber), 0 0 25px var(--glow-amber); }
    52% { text-shadow: 0 0 5px var(--glow-amber); }
    54% { text-shadow: 0 0 15px var(--glow-amber), 0 0 25px var(--glow-amber); }
}

/* Pressure Gauge */
.pressure-gauge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--parchment);
    background: var(--iron);
    padding: 8px 15px;
    border: 2px solid var(--brass-dark);
    border-radius: 20px;
}

.gauge-needle {
    width: 30px;
    height: 30px;
    background: 
        radial-gradient(circle, var(--parchment) 0%, #ccc 100%);
    border: 2px solid var(--brass-dark);
    border-radius: 50%;
    position: relative;
}

.gauge-needle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 12px;
    background: red;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(45deg);
    animation: needle-wobble 4s ease-in-out infinite;
}

@keyframes needle-wobble {
    0%, 100% { transform: translate(-50%, -100%) rotate(30deg); }
    50% { transform: translate(-50%, -100%) rotate(60deg); }
}

/* ============================================
   9. FOOTER (The Engine Room)
   ============================================ */
.site-footer {
    background: 
        linear-gradient(180deg, 
            var(--iron-dark) 0%, 
            #0d0f11 100%
        );
    border-top: 4px solid var(--brass-dark);
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    position: relative;
    margin-top: var(--space-xl);
}

/* Decorative pipe at top of footer */
.site-footer::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: 
        linear-gradient(90deg, 
            var(--brass-dark) 0%, 
            var(--copper) 20%,
            var(--brass-light) 50%,
            var(--copper) 80%,
            var(--brass-dark) 100%
        );
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.footer-widget {
    color: var(--parchment-aged);
}

.footer-widget h3 {
    font-family: var(--font-head);
    color: var(--brass-light);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    text-shadow: 0 0 10px var(--glow-amber);
    border-bottom: 2px solid var(--brass-dark);
    padding-bottom: var(--space-sm);
}

.footer-widget p,
.footer-widget li {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: rgba(253, 245, 230, 0.8);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    padding: 5px 0;
    border-bottom: 1px dashed rgba(181, 166, 66, 0.3);
}

.footer-widget a {
    color: var(--copper);
}

.footer-widget a:hover {
    color: var(--brass-light);
}

/* Footer Status Display */
.footer-status {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--acc-lena);
    text-align: center;
    padding: var(--space-lg) 0 0;
    border-top: 1px solid rgba(181, 166, 66, 0.2);
    margin-top: var(--space-lg);
}

.footer-status .status-item {
    display: inline-block;
    margin: 0 15px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--brass-dark);
    border-radius: 3px;
}

.footer-copyright {
    text-align: center;
    padding-top: var(--space-md);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: rgba(253, 245, 230, 0.5);
}

/* ============================================
   10. HOME PAGE - THE BRIDGE
   ============================================ */
.home-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(180deg, 
            rgba(26, 30, 34, 0.7) 0%,
            rgba(26, 30, 34, 0.4) 50%,
            rgba(26, 30, 34, 0.9) 100%
        ),
        var(--sky-gradient);
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="0.5" fill="white" opacity="0.6"/><circle cx="80" cy="20" r="0.3" fill="white" opacity="0.4"/><circle cx="50" cy="60" r="0.4" fill="white" opacity="0.5"/><circle cx="10" cy="80" r="0.3" fill="white" opacity="0.3"/><circle cx="90" cy="70" r="0.5" fill="white" opacity="0.5"/></svg>');
    background-size: 200px 200px;
    animation: stars-drift 100s linear infinite;
    opacity: 0.5;
}

@keyframes stars-drift {
    from { background-position: 0 0; }
    to { background-position: 200px 200px; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: var(--space-xl);
}

.hero-title {
    font-family: var(--font-head);
    font-size: 4rem;
    color: var(--brass-light);
    text-shadow: 
        0 0 20px var(--glow-amber),
        0 0 40px rgba(255, 191, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: var(--space-md);
    letter-spacing: 0.1em;
}

.hero-logo {
    margin-bottom: var(--space-md);
}

.hero-logo-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    /* Filter applied via inline styles from customizer */
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--parchment);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    font-style: italic;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--iron-dark);
    background: 
        linear-gradient(180deg, 
            var(--brass-light) 0%, 
            var(--brass-dark) 50%, 
            var(--brass-antique) 100%
        );
    padding: 15px 40px;
    border: 3px solid var(--leather);
    border-radius: 4px;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        0 6px 0 var(--leather-dark),
        0 8px 15px rgba(0, 0, 0, 0.5);
    transition: var(--transition-bounce);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-cta:hover {
    transform: translateY(3px);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        0 3px 0 var(--leather-dark),
        0 5px 10px rgba(0, 0, 0, 0.4);
    color: var(--iron-dark);
}

/* Dashboard Panels on Home */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-panel {
    background: 
        linear-gradient(145deg, 
            rgba(47, 53, 59, 0.9) 0%, 
            rgba(26, 30, 34, 0.95) 100%
        );
    border: 3px solid var(--brass-dark);
    border-radius: 8px;
    padding: var(--space-lg);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.dashboard-panel::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: 
        linear-gradient(90deg, 
            var(--brass-dark), 
            var(--brass-light), 
            var(--brass-dark)
        );
    border-radius: 2px;
}

.dashboard-panel h2 {
    color: var(--brass-light);
    font-size: 1.3rem;
    margin-top: var(--space-md);
    text-shadow: 0 0 10px var(--glow-amber);
}

.dashboard-panel p {
    color: var(--parchment-aged);
}

/* ============================================
   11. CHARACTER PAGES - PERSONAL QUARTERS
   ============================================ */
.character-profile {
    position: relative;
}

.character-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px dashed var(--brass-dark);
}

.character-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.character-meta {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--leather);
    opacity: 0.8;
}

.character-portrait {
    float: right;
    margin: 0 0 var(--space-md) var(--space-lg);
    max-width: 350px;
    border: 5px solid var(--brass-dark);
    border-radius: 4px;
    box-shadow: 
        0 0 0 3px var(--leather),
        5px 5px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.character-portrait img {
    display: block;
    width: 100%;
    height: auto;
}

/* Portrait frame corner accents */
.character-portrait::before,
.character-portrait::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--brass-light);
    z-index: 2;
}

.character-portrait::before {
    top: 5px;
    left: 5px;
    border-right: none;
    border-bottom: none;
}

.character-portrait::after {
    bottom: 5px;
    right: 5px;
    border-left: none;
    border-top: none;
}

.character-bio {
    line-height: 1.8;
    color: var(--iron-dark);
}

.character-bio h2,
.character-bio h3 {
    margin-top: var(--space-lg);
    color: var(--leather-dark);
}

.character-bio p {
    color: var(--iron-dark);
}

/* Character Stat Block */
.character-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid var(--brass-dark);
    border-radius: 4px;
    padding: var(--space-md);
    margin: var(--space-lg) 0;
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--leather);
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--brass-dark);
}

/* ============================================
   12. CHARACTER-SPECIFIC THEMES
   ============================================ */
/* SARKA - The Captain (Sky & Earth) */
.style-sarka .steampunk-panel {
    background: var(--parchment);
    border-color: var(--acc-sarka-dark);
}

.style-sarka .character-header h1,
.style-sarka .character-name {
    color: var(--acc-sarka-dark);
}

.style-sarka .character-portrait {
    border-color: var(--acc-sarka-dark);
}

/* LENA - The Gunner/Cook (Copper & Green) */
.style-lena .steampunk-panel {
    background: var(--parchment);
    border-color: var(--copper);
}

.style-lena .character-header h1,
.style-lena .character-name {
    color: var(--copper);
}

.style-lena .character-portrait {
    border-color: var(--copper);
}

/* MEI-LING - The Mechanic (Grey & White) */
.style-meiling .steampunk-panel {
    background: var(--parchment);
    border-color: var(--acc-mei-grey);
}

.style-meiling .character-header h1,
.style-meiling .character-name {
    color: var(--acc-mei-grey);
}

.style-meiling .character-portrait {
    border-color: var(--acc-mei-grey);
}

/* KIERAN - The Medic (Amber & Silver) */
.style-kieran .steampunk-panel {
    background: var(--parchment);
    border-color: var(--acc-kieran);
}

.style-kieran .character-header h1,
.style-kieran .character-name {
    color: #996600;
}

.style-kieran .character-portrait {
    border-color: var(--acc-kieran-silver);
}

/* MAR'I - The Navigator (Teal & Coral) */
.style-mari .steampunk-panel {
    background: var(--parchment);
    border-color: var(--acc-mari-teal);
}

.style-mari .character-header h1,
.style-mari .character-name {
    color: #cc4040;
}

.style-mari .character-portrait {
    border-color: var(--acc-mari);
}

/* Playful star decoration */
.style-mari .steampunk-panel::after {
    content: '★';
    position: absolute;
    top: 15px;
    right: 50px;
    font-size: 1.5rem;
    color: var(--acc-mari);
    opacity: 0.5;
    animation: star-twinkle 2s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ============================================
   13. CREW MANIFEST (Character Archive)
   ============================================ */
.crew-manifest {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
}

.crew-card {
    background: 
        linear-gradient(145deg, 
            rgba(47, 53, 59, 0.95) 0%, 
            rgba(26, 30, 34, 0.98) 100%
        );
    border: 3px solid var(--brass-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
}

.crew-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 20px var(--glow-brass),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--brass-light);
}

.crew-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.crew-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.crew-card:hover .crew-card-image img {
    transform: scale(1.05);
}

/* Brass frame overlay */
.crew-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 8px solid transparent;
    border-image: 
        linear-gradient(180deg, 
            var(--brass-light) 0%, 
            var(--brass-dark) 100%
        ) 1;
    pointer-events: none;
}

.crew-card-content {
    padding: var(--space-md);
}

.crew-card-content h3 {
    font-family: var(--font-head);
    color: var(--brass-light);
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    text-shadow: 0 0 10px var(--glow-amber);
}

.crew-card-role {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--copper);
    margin-bottom: var(--space-sm);
}

.crew-card-excerpt {
    font-size: 0.9rem;
    color: var(--parchment-aged);
    line-height: 1.6;
}

.crew-card-link {
    display: inline-block;
    margin-top: var(--space-sm);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--brass-light);
    border-bottom: 1px dashed var(--brass-dark);
    padding-bottom: 2px;
}

.crew-card-link:hover {
    border-color: var(--brass-light);
}

/* ============================================
   14. BLOG POSTS - SHIP'S LOG
   ============================================ */
.post-entry {
    margin-bottom: var(--space-lg);
}

.post-entry .post-title {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
}

.post-entry .post-title a {
    color: var(--leather);
}

.post-entry .post-title a:hover {
    color: var(--copper);
}

.post-meta {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--leather);
    opacity: 0.7;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px dashed var(--brass-dark);
}

.post-meta span {
    margin-right: 15px;
}

.post-thumbnail {
    margin-bottom: var(--space-md);
    border: 4px solid var(--brass-dark);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    font-family: var(--font-ui);
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--copper);
    margin-top: var(--space-md);
    padding: 8px 20px;
    border: 2px solid var(--brass-dark);
    border-radius: 4px;
    background: transparent;
    transition: var(--transition-smooth);
}

.read-more:hover {
    background: var(--brass-dark);
    color: var(--parchment);
}

/* Single Post */
.single-post-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--brass-dark);
    border-radius: 4px;
    margin: var(--space-md) 0;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--brass-dark);
}

.post-navigation a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--copper);
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-navigation a:hover {
    color: var(--brass-light);
}

/* ============================================
   15. 404 PAGE - LOST IN THE CLOUDS
   ============================================ */
.error-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--brass-light);
    text-shadow: 
        0 0 30px var(--glow-amber),
        0 0 60px rgba(255, 191, 0, 0.3);
    margin-bottom: 0;
    line-height: 1;
}

.error-404 h2 {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--parchment);
    font-weight: normal;
    margin-bottom: var(--space-lg);
}

.error-404 p {
    color: var(--parchment-aged);
    max-width: 500px;
    margin-bottom: var(--space-lg);
}

/* ============================================
   16. WIDGETS & SIDEBAR
   ============================================ */
.widget-area {
    padding: var(--space-lg) 0;
}

.widget {
    background: 
        linear-gradient(145deg, 
            rgba(47, 53, 59, 0.9) 0%, 
            rgba(26, 30, 34, 0.95) 100%
        );
    border: 2px solid var(--brass-dark);
    border-radius: 6px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.widget-title {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--brass-light);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--brass-dark);
    text-shadow: 0 0 8px var(--glow-amber);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(181, 166, 66, 0.3);
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--parchment-aged);
}

.widget a:hover {
    color: var(--brass-light);
}

/* ============================================
   17. FORMS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    width: 100%;
    padding: 12px 15px;
    background: var(--parchment);
    border: 2px solid var(--brass-dark);
    border-radius: 4px;
    color: var(--iron);
    transition: var(--transition-smooth);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--brass-light);
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.1),
        0 0 10px var(--glow-brass);
}

button,
input[type="submit"],
.button {
    font-family: var(--font-ui);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--iron-dark);
    background: 
        linear-gradient(180deg, 
            var(--brass-light) 0%, 
            var(--brass-dark) 100%
        );
    padding: 12px 25px;
    border: 2px solid var(--leather);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 4px 0 var(--leather-dark),
        0 6px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

button:hover,
input[type="submit"]:hover,
.button:hover {
    transform: translateY(2px);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 2px 0 var(--leather-dark),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
}

.search-form button {
    padding: 12px 20px;
}

/* ============================================
   18. PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--brass-dark);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-family: var(--font-ui);
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--iron);
    background: 
        linear-gradient(180deg, #ccc 0%, #999 100%);
    border: 2px solid var(--brass-dark);
    border-radius: 4px;
    box-shadow: 
        0 3px 0 var(--leather),
        0 4px 6px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.pagination a:hover {
    background: 
        linear-gradient(180deg, 
            var(--brass-light) 0%, 
            var(--brass-dark) 100%
        );
    color: var(--parchment);
    transform: translateY(2px);
    box-shadow: 
        0 1px 0 var(--leather),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.pagination .current {
    background: 
        linear-gradient(180deg, 
            var(--brass-dark) 0%, 
            var(--leather) 100%
        );
    color: var(--parchment);
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 1px 0 var(--leather);
}

/* ============================================
   19. COMMENTS
   ============================================ */
.comments-area {
    margin-top: var(--space-xl);
}

.comments-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--leather);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--brass-dark);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    background: rgba(253, 245, 230, 0.5);
    border: 2px solid var(--brass-dark);
    border-radius: 6px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.comment-author {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--leather);
}

.comment-meta {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--leather);
    opacity: 0.7;
    margin-bottom: var(--space-sm);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

.comment-reply-link {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--copper);
}

/* Nested comments */
.comment .children {
    margin-top: var(--space-md);
    margin-left: var(--space-lg);
    padding-left: var(--space-md);
    border-left: 3px solid var(--brass-dark);
}

/* Comment Form */
.comment-respond {
    margin-top: var(--space-lg);
}

.comment-form label {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--leather);
    display: block;
    margin-bottom: 5px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: var(--space-md);
}

/* ============================================
   20. UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* Fade-in animation for page loads */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger delays for dashboard panels */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ============================================
   21. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 900px) {
    body {
        font-size: 16px;
    }
    
    .header-inner {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .site-title a {
        font-size: 1.4rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .character-portrait {
        float: none;
        margin: 0 auto var(--space-lg);
        max-width: 100%;
    }
    
    .steampunk-panel {
        padding: var(--space-md);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.05em;
    }
    
    .hero-logo-image {
        max-width: 280px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        padding: 12px 25px;
        font-size: 0.85rem;
    }
    
    .site-title a {
        font-size: 1.1rem;
        padding: 8px 12px;
    }
    
    .error-404 h1 {
        font-size: 5rem;
    }
    
    .crew-manifest {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ============================================
   22. PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .site-header,
    .site-footer,
    .main-navigation,
    .gear-decor {
        display: none;
    }
    
    .steampunk-panel {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* ============================================
   23. WORDPRESS SPECIFIC
   ============================================ */
/* Alignment classes */
.alignleft {
    float: left;
    margin: 0 var(--space-md) var(--space-md) 0;
}

.alignright {
    float: right;
    margin: 0 0 var(--space-md) var(--space-md);
}

.aligncenter {
    display: block;
    margin: var(--space-md) auto;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Caption */
.wp-caption {
    max-width: 100%;
    margin: var(--space-md) 0;
}

.wp-caption img {
    display: block;
    width: 100%;
}

.wp-caption-text {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--leather);
    text-align: center;
    padding: var(--space-sm);
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 2px solid var(--brass-dark);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border: 3px solid var(--brass-dark);
    border-radius: 4px;
}

/* Block Editor styles */
.wp-block-image {
    margin: var(--space-lg) 0;
}

.wp-block-image img {
    border: 3px solid var(--brass-dark);
    border-radius: 4px;
}

.wp-block-quote {
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
    border-left: 4px solid var(--brass-antique);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    background: rgba(244, 228, 201, 0.3);
}

.wp-block-pullquote {
    border-top: 3px solid var(--brass-dark);
    border-bottom: 3px solid var(--brass-dark);
    padding: var(--space-lg);
    text-align: center;
}

.wp-block-separator {
    border: none;
    border-top: 3px solid var(--brass-dark);
    margin: var(--space-xl) auto;
    max-width: 200px;
}

/* Admin bar offset */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
