:root {
    /* Palette: Crimson Edge Lore (Strictly No Blue) */
    --bg-outer: #050506;
    --bg-base: #0b0b0d;
    --bg-surface: #121216;
    --bg-surface-alt: #1a1a1f;
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --text-main: #c0c4cc;
    --text-heading: #ffffff;
    --text-muted: #8a8d93;
    --border-subtle: #2a2a35;
    
    /* Mechanics */
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
    --glow-accent: 0 0 24px -4px rgba(220, 38, 38, 0.4);
}

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

body {
    background-color: var(--bg-outer);
    color: var(--text-main);
    font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    padding: 2vw;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
    overflow-wrap: anywhere;
    hyphens: auto;
}

p {
    margin-bottom: 1.5rem;
}

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

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

/* Structure */
.page-frame {
    background-color: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    min-height: calc(100vh - 4vw);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.top-bar {
    text-align: center;
    font-size: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: relative;
    border-bottom: 1px solid rgba(42, 42, 53, 0.5);
}

.brand {
    font-weight: 800;
    color: var(--text-heading);
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    display: block;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2rem;
    z-index: 100;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-overlay.active {
    display: flex;
}

/* Content Columns */
main {
    flex: 1;
    padding: 4rem 2rem;
}

.reading-col {
    max-width: 68ch;
    margin: 0 auto;
}

/* Typography elements */
.article-header {
    margin-bottom: 4rem;
    text-align: center;
}

.article-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.pull-quote {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 3rem -4rem;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--accent);
    line-height: 1.3;
    background: var(--bg-surface);
    border-radius: 0 20px 20px 0;
}

.breakout-img {
    width: calc(100% + 8rem);
    max-width: 1200px;
    margin: 3rem 0 3rem -4rem;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-subtle);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-img-wrap {
    position: relative;
}

.hero-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

/* Badges & Buttons */
.badge-label {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
    box-shadow: var(--glow-accent);
}

.btn {
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 14px 32px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-kinetic);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-accent);
    color: #fff;
}

/* Grid Sections */
.section-title {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    font-size: 2.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.card {
    background: var(--bg-surface);
    border-radius: 20px;
    position: relative;
    border: 1px solid var(--border-subtle);
    transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevation);
    border-color: var(--accent);
}

.card-img-wrap {
    position: relative;
    padding: 1rem 1rem 0;
}

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg-surface-alt);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Forms & Tables */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-heading);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-heading);
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    background: var(--bg-surface);
    font-weight: 800;
    color: var(--text-heading);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem;
    margin-top: 4rem;
    text-align: center;
    background: var(--bg-surface);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

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

.footer-legal {
    font-size: 0.8rem;
    color: #555;
}

/* Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-kinetic);
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
    .site-header { padding: 1.5rem 2rem; }
    .hero { gap: 2rem; }
    .pull-quote { margin: 2rem -2rem; }
    .breakout-img { width: calc(100% + 4rem); margin-left: -2rem; }
}

@media (max-width: 768px) {
    body { padding: 0; }
    .page-frame { border-radius: 0; border: none; min-height: 100vh; }
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { grid-template-columns: 1fr; text-align: center; padding: 0 1.5rem; margin-bottom: 3rem;}
    .hero-content p { margin: 0 auto 2rem; }
    .pull-quote { margin: 2rem 0; border-radius: 0; border-left: none; border-top: 4px solid var(--accent); }
    .breakout-img { width: 100%; margin-left: 0; }
    .reading-col { padding: 0 1.5rem; }
}

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