:root {
    /* Color Palette - Deep Rest Edits (Strictly NO BLUE) */
    --bg-paper: #f7f5f0;
    --text-ink: #111111;
    --text-muted: #555555;
    --accent-red: #d62828;
    --border-divider: rgba(17, 17, 17, 0.1);
    
    /* Gradients & Highlights */
    --glow-red: radial-gradient(circle at center, rgba(214, 40, 40, 0.04) 0%, rgba(247, 245, 240, 0) 60%);
    
    /* Layout Variables */
    --max-width: 1200px;
    --reading-width: 70ch;
    --radius-soft: 4px;
    --radius-square: 0px;
    
    /* Typography */
    --font-serif: "Georgia", "Times New Roman", serif;
    
    /* Animation */
    --ease-slow: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-serif);
    background-color: var(--bg-paper);
    color: var(--text-ink);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    margin-top: 0;
    line-height: 1.2;
    color: var(--text-ink);
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

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

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

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-soft);
    display: block;
}

.label-smallcaps {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.reading-container {
    max-width: var(--reading-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-divider);
    position: relative; /* Scrolls out of view naturally */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--text-ink);
    display: block;
}

.brand-logo span {
    color: var(--accent-red);
}

/* Navigation Desktop */
.nav-desktop {
    display: flex;
    gap: 2rem;
}

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

/* Mobile Nav Toggle (3-dot) */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-ink);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-paper);
    border-bottom: 1px solid var(--border-divider);
    padding: 2rem 1.5rem;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.mobile-menu-overlay.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-overlay a {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background-image: var(--glow-red);
    background-size: 200% 200%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    width: 100%;
}

/* Three aesthetically overlapping images */
.hero-img-1, .hero-img-2, .hero-img-3 {
    position: absolute;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-img-1 {
    top: 0;
    left: 0;
    width: 65%;
    height: 70%;
    z-index: 1;
}

.hero-img-2 {
    bottom: 5%;
    right: 0;
    width: 55%;
    height: 65%;
    z-index: 2;
}

.hero-img-3 {
    top: 30%;
    left: 20%;
    width: 45%;
    height: 45%;
    z-index: 3;
    border: 4px solid var(--bg-paper);
}

/* Split Sections */
.split-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-divider);
}

.split-section:nth-of-type(even) .split-grid {
    direction: rtl;
}

.split-section:nth-of-type(even) .split-content {
    direction: ltr;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-visual img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Thin Divider List Rows */
.list-row-container {
    margin-top: 2rem;
}

.list-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-divider);
}

.list-row:first-child {
    border-top: 1px solid var(--border-divider);
}

.list-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--accent-red);
}

.list-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

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

/* Buttons */
.btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--text-ink);
    background: transparent;
    color: var(--text-ink);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    border-radius: var(--radius-square);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--text-ink);
    color: var(--bg-paper);
}

.btn-primary {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-primary:hover {
    background-color: var(--accent-red);
    color: var(--bg-paper);
}

/* Sleep Audit Tool */
.audit-tool {
    background-color: rgba(17, 17, 17, 0.03);
    padding: 3rem;
    border-radius: var(--radius-soft);
    margin: 4rem 0;
    border: 1px solid var(--border-divider);
}

.audit-tool h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.audit-tool > p {
    text-align: center;
    margin-bottom: 2rem;
}

.audit-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

textarea.input-field, input.input-field {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-divider);
    background: var(--bg-paper);
    color: var(--text-ink);
    font-family: var(--font-serif);
    font-size: 1rem;
    border-radius: var(--radius-soft);
    resize: vertical;
}

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

.audit-results {
    margin-top: 2rem;
    display: none;
    background: #ffffff;
    padding: 2rem;
    border-left: 4px solid var(--accent-red);
    border-radius: var(--radius-soft);
}

.audit-results ul {
    list-style-type: square;
    padding-left: 1.5rem;
    color: var(--text-ink);
}

.audit-results li {
    margin-bottom: 0.5rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 5rem 0 3rem;
    background-image: var(--glow-red);
}

.page-header h1 {
    font-size: 3rem;
}

/* Editorial Content Styles */
.editorial-content {
    padding: 4rem 0;
}

.editorial-content h2 {
    margin-top: 3rem;
    border-bottom: 1px solid var(--border-divider);
    padding-bottom: 0.5rem;
}

/* Footer (Vertical Stack Left Aligned to strictly obey NEVER center brand) */
.site-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-divider);
    background-color: var(--bg-paper);
}

.footer-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-legal-links {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-grid, .split-grid {
        gap: 2rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .mobile-nav-toggle { display: block; }
    
    .hero-grid, .split-grid {
        grid-template-columns: 1fr;
    }
    
    .split-section:nth-of-type(even) .split-grid {
        direction: ltr;
    }
    
    .hero-visual {
        height: 350px;
        order: -1;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .split-visual img {
        height: 300px;
    }
}

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