/* Law of Equivalent Exchange — base styles */

:root {
    --stone-900: #1a1c1e;
    --stone-800: #25282c;
    --stone-700: #343a40;
    --stone-600: #4a5568;
    --stone-400: #94a3b8;
    --stone-200: #e2e8f0;
    --mineral: #2d4a4a;
    --mineral-light: #3d6363;
    --amber: #c9a227;
    --amber-glow: rgba(201, 162, 39, 0.35);
    --amber-soft: rgba(201, 162, 39, 0.12);
    --mist: rgba(226, 232, 240, 0.92);
    --text-primary: #e8eaed;
    --text-secondary: #a8b0bc;
    --text-muted: #6b7280;
    --white: #ffffff;
    --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45);
    --transition: 0.25s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--stone-900);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--amber);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #e0bc4a;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--spacing-md);
    background: var(--amber);
    color: var(--stone-900);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    z-index: 2000;
    font-weight: 600;
}

.skip-link:focus {
    top: var(--spacing-md);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 28, 30, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 4rem;
    gap: var(--spacing-md);
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
}

.logo-image {
    width: 42px;
    height: 56px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber) 0%, #a8861f 100%);
    color: var(--stone-900);
    box-shadow: 0 4px 16px var(--amber-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--amber-glow);
    color: var(--stone-900);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(201, 162, 39, 0.45);
}

.btn-secondary:hover {
    background: var(--amber-soft);
    color: var(--text-primary);
}

.btn-large {
    padding: 0.95rem 1.75rem;
    font-size: 1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.main-content {
    min-height: 60vh;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.footer {
    background: var(--stone-800);
    border-top: 1px solid rgba(201, 162, 39, 0.12);
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-serif);
    margin-bottom: var(--spacing-md);
    color: var(--amber);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 4rem;
        right: 0;
        left: 0;
        flex-direction: column;
        background: var(--stone-800);
        padding: var(--spacing-lg);
        border-bottom: 1px solid rgba(201, 162, 39, 0.15);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}
