:root {
    /* Warm Ochre Ergonomics Palette (Strictly No Blue) */
    --bg-canvas: #1e1612;     /* Deep Espresso */
    --bg-surface: #36281e;    /* Lighter Espresso Surface */
    --text-primary: #f5ecdf;  /* Off-white Sand */
    --accent: #f59e0b;        /* Amber Accent */
    
    /* UI Variables */
    --radius-lg: 20px;
    --font-stack: 'Trebuchet MS', 'Segoe UI', sans-serif;
    --line-height-body: 1.8;
    
    /* Layout */
    --max-width-main: 1200px;
    --max-width-read: 72ch;
    
    /* Micro-interactions */
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: var(--font-stack);
    line-height: var(--line-height-body);
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-primary);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    margin-bottom: 1.5rem;
}

/* Header & Footer (Floating, Rounded, Inset) */
.header-wrapper, .footer-wrapper {
    padding: 20px;
    max-width: var(--max-width-main);
    margin: 0 auto;
}

.site-header, .site-footer {
    background-color: var(--bg-surface);
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-elevation);
}

.site-header {
    position: relative; /* Moves out of view on scroll */
    z-index: 100;
}

.brand {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-right: auto; /* Force far-left */
}

.main-nav {
    display: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--accent);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-elevation);
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    color: var(--text-primary);
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Desktop Nav Media Query */
@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }
    .main-nav { display: block; }
}

/* Buttons */
.btn {
    display: inline-block;
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    padding: 12px 24px;
    border-radius: 0; /* Square ends per brief */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s var(--ease-kinetic);
    text-align: center;
}

.btn:hover {
    background: var(--accent);
    color: var(--bg-canvas);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); /* Amber glow */
}

/* Layout Containers */
.container {
    max-width: var(--max-width-main);
    margin: 0 auto;
    padding: 40px 20px;
}

.reading-content {
    max-width: var(--max-width-read);
    margin: 0 auto;
}

/* Hero Section */
.hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 60px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-img-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: var(--radius-lg);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(30, 22, 18, 0.9) 0%, rgba(30, 22, 18, 0.4) 100%);
    z-index: 2;
    border-radius: var(--radius-lg);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    max-width: 600px;
}

/* Floating Fact Card */
.fact-card {
    background: var(--bg-surface);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevation);
    margin-top: 30px;
    border-left: 4px solid var(--accent);
}

.fact-card ul {
    list-style: none;
}

.fact-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.fact-card li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
}

/* Bold Amber Blocks */
.amber-block {
    background-color: var(--accent);
    color: var(--bg-canvas);
    padding: 80px 20px;
    margin: 60px 0;
}

.amber-block h2, .amber-block p {
    color: var(--bg-canvas);
}

.amber-block .btn {
    border-color: var(--bg-canvas);
    color: var(--bg-canvas);
}

.amber-block .btn:hover {
    background: var(--bg-canvas);
    color: var(--accent);
}

/* Masonry Cards */
.masonry-grid {
    column-count: 1;
    column-gap: 30px;
    padding: 20px 0;
}

@media (min-width: 768px) { .masonry-grid { column-count: 2; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 3; } }

.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    break-inside: avoid;
    position: relative;
    transition: transform 0.3s var(--ease-kinetic);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevation);
}

.card img {
    width: 100%;
    aspect-ratio: 4/3;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card-content {
    padding: 25px;
}

/* Amber Label Badge */
.card-badge {
    position: absolute;
    top: 20px;
    right: -10px;
    background: var(--accent);
    color: var(--bg-canvas);
    padding: 5px 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
}

.card-badge::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    border-width: 10px 10px 0 0;
    border-style: solid;
    border-color: #b47306 transparent transparent transparent; /* Darker amber for shadow effect */
}

/* Editorial Elements */
.pull-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 40px 0;
    background: var(--bg-surface);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.breakout-image {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 40px;
    margin-bottom: 40px;
    max-height: 60vh;
    border-radius: 0; /* Full bleed */
}

@media (min-width: 1200px) {
    .breakout-image {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: auto;
        margin-right: auto;
        border-radius: var(--radius-lg);
    }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: var(--bg-canvas);
    border: 1px solid rgba(245, 236, 223, 0.2);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Assessment Tool Output */
#tool-output {
    display: none;
    background: var(--bg-surface);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
    border-left: 4px solid var(--accent);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s var(--ease-kinetic);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Specifics */
.site-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.footer-info {
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .site-footer {
        flex-direction: row;
        text-align: left;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

th {
    color: var(--accent);
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
